Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002247/0.002247, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2194/0.2194, allocations: 16.76 MB / 307.1 MB, free: 14.9 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.91 kB / 371.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3269, allocations: 53.45 MB / 425.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002002/0.3289, allocations: 1.056 MB / 426.2 MB, free: 38.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006695/0.3296, allocations: 404.6 kB / 426.6 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.63e-05/0.3297, allocations: 5.219 kB / 426.6 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.3299, allocations: 47.08 kB / 426.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.3301, allocations: 42.91 kB / 426.7 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/0.3303, allocations: 126.2 kB / 426.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.3306, allocations: 315.7 kB / 427.2 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.691e-05/0.3306, allocations: 22.03 kB / 427.2 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3308, allocations: 148.2 kB / 427.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.16e-05/0.3308, allocations: 42.75 kB / 427.4 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.3309, allocations: 9.703 kB / 427.4 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.331, allocations: 67.02 kB / 427.4 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.633e-05/0.331, allocations: 18.86 kB / 427.5 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.3311, allocations: 32.45 kB / 427.5 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.3313, allocations: 110.7 kB / 427.6 MB, free: 38.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3313, allocations: 0 / 427.6 MB, free: 38.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3313, allocations: 0 / 427.6 MB, free: 38.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3313, allocations: 0 / 427.6 MB, free: 38.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003689/0.3317, allocations: 436.6 kB / 428 MB, free: 38.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.3317, allocations: 16.83 kB / 428 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.972e-05/0.3317, allocations: 37.12 kB / 428.1 MB, free: 38.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.3318, allocations: 15 kB / 428.1 MB, free: 38.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.3319, allocations: 199.2 kB / 428.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.3319, allocations: 8.781 kB / 428.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.332, allocations: 8.438 kB / 428.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.3321, allocations: 111.2 kB / 428.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3322, allocations: 0 / 428.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.3322, allocations: 4.406 kB / 428.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3322, allocations: 2.781 kB / 428.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.967e-05/0.3323, allocations: 50.67 kB / 428.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005297/0.3328, allocations: 0.82 MB / 429.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.333, allocations: 51.8 kB / 429.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.333, allocations: 22.42 kB / 429.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.3331, allocations: 0 / 429.4 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.202e-05/0.3331, allocations: 31.64 kB / 429.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.3331, allocations: 6.531 kB / 429.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001998/0.3333, allocations: 117.6 kB / 429.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.3333, allocations: 82.98 kB / 429.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.3334, allocations: 175.1 kB / 429.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.3334, allocations: 25.7 kB / 429.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.3335, allocations: 110.5 kB / 429.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.3335, allocations: 21.97 kB / 429.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.3335, allocations: 35.64 kB / 430 MB, free: 36.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.384e-05/0.3336, allocations: 327.9 kB / 430.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.964e-05/0.3336, allocations: 29.48 kB / 430.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.174e-05/0.3337, allocations: 46.31 kB / 430.4 MB, free: 36.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.595e-05/0.3338, allocations: 130.2 kB / 430.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3338, allocations: 0 / 430.5 MB, free: 36.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001509/0.3339, allocations: 145 kB / 430.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.334, allocations: 31.42 kB / 430.7 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.334, allocations: 6.562 kB / 430.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.334, allocations: 3.031 kB / 430.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.029e-05/0.3341, allocations: 13.84 kB / 430.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3341, allocations: 128 / 430.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.889e-05/0.3341, allocations: 16.03 kB / 430.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.3341, allocations: 2.875 kB / 430.7 MB, free: 35.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.064e-05/0.3342, allocations: 159.4 kB / 430.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.3342, allocations: 9.469 kB / 430.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.3344, allocations: 128.8 kB / 431 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3344, allocations: 2.781 kB / 431 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3344, allocations: 0 / 431 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3344, allocations: 0 / 431 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.39e-05/0.3345, allocations: 191.4 kB / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3345, allocations: 0 / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.904e-05/0.3345, allocations: 3.938 kB / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3346, allocations: 0 / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.3346, allocations: 7.422 kB / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.3346, allocations: 7.062 kB / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3346, allocations: 0 / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.3347, allocations: 130 kB / 431.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.175e-05/0.3347, allocations: 87.77 kB / 431.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3347, allocations: 11.22 kB / 431.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.012e-05/0.3348, allocations: 2.812 kB / 431.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.332e-05/0.3348, allocations: 0 / 431.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.3348, allocations: 3.844 kB / 431.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.488e-05/0.3349, allocations: 129.2 kB / 431.5 MB, free: 35.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3349, allocations: 3.938 kB / 431.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3351, allocations: 23.44 kB / 431.6 MB, free: 35.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002785/0.3354, allocations: 0.6872 MB / 432.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.3355, allocations: 109.3 kB / 432.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3356, allocations: 0 / 432.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.741e-05/0.3356, allocations: 75.2 kB / 432.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.3358, allocations: 11.55 kB / 432.5 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.337, allocations: 1.587 MB / 434 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.682e-05/0.3371, allocations: 0.7021 MB / 434.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.674e-05/0.3372, allocations: 47.17 kB / 434.8 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.3372, allocations: 35.95 kB / 434.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3372, allocations: 0 / 434.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.3546, allocations: 2.286 MB / 437.1 MB, free: 32.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.466/7.821, allocations: 7.922 kB / 437.1 MB, free: 32.04 MB / 350.1 MB (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches