Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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: translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 108 kB / 15.6 MB, free: 132 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.001172/0.001172, allocations: 199.6 kB / 16.54 MB, free: 6.672 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.232/1.232, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1586/0.1586, allocations: 16.75 MB / 307.1 MB, free: 14.92 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.84 kB / 371.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2292, allocations: 53.45 MB / 425.1 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002065/0.2313, allocations: 1.051 MB / 426.1 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005796/0.2319, allocations: 269.2 kB / 426.4 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2321, allocations: 2.531 kB / 426.4 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.2322, allocations: 40.27 kB / 426.4 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.2325, allocations: 37.44 kB / 426.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.2326, allocations: 75.78 kB / 426.5 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.2328, allocations: 242.2 kB / 426.8 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.288e-05/0.2329, allocations: 29.59 kB / 426.8 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.439e-05/0.233, allocations: 116.8 kB / 426.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.088e-05/0.233, allocations: 50.2 kB / 427 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2331, allocations: 2.875 kB / 427 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.024e-05/0.2331, allocations: 12.44 kB / 427 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.212e-05/0.2332, allocations: 26.7 kB / 427 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.758e-05/0.2332, allocations: 41.89 kB / 427.1 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.2334, allocations: 75.8 kB / 427.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2334, allocations: 0 / 427.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2334, allocations: 0 / 427.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2334, allocations: 0 / 427.1 MB, free: 39.21 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003876/0.2338, allocations: 441.6 kB / 427.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.2338, allocations: 15.72 kB / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.2339, allocations: 17.28 kB / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.234, allocations: 204.4 kB / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.234, allocations: 5.656 kB / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.234, allocations: 9.625 kB / 427.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.2342, allocations: 134.1 kB / 427.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2343, allocations: 4 kB / 427.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2343, allocations: 2.75 kB / 427.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2343, allocations: 2.719 kB / 427.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.2345, allocations: 69.72 kB / 428 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.235, allocations: 0.899 MB / 428.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.2351, allocations: 78.14 kB / 429 MB, free: 37.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.303e-05/0.2352, allocations: 33.91 kB / 429 MB, free: 37.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.2352, allocations: 13.97 kB / 429 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.2354, allocations: 91.62 kB / 429.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.2354, allocations: 0 / 429.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000268/0.2357, allocations: 153.2 kB / 429.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.2357, allocations: 111.2 kB / 429.4 MB, free: 37.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.2358, allocations: 179.2 kB / 429.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.2358, allocations: 29.77 kB / 429.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.2359, allocations: 111 kB / 429.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.2359, allocations: 24.06 kB / 429.7 MB, free: 37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/0.2359, allocations: 44.06 kB / 429.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.877e-05/0.236, allocations: 322.9 kB / 430.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.383e-05/0.2361, allocations: 35.09 kB / 430.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.153e-05/0.2361, allocations: 91.19 kB / 430.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.2364, allocations: 257.6 kB / 430.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2364, allocations: 0 / 430.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002159/0.2366, allocations: 185.3 kB / 430.6 MB, free: 36.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.2366, allocations: 40.58 kB / 430.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.2367, allocations: 8.953 kB / 430.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2367, allocations: 2.938 kB / 430.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.308e-05/0.2368, allocations: 14.77 kB / 430.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2368, allocations: 5.094 kB / 430.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.001e-05/0.2368, allocations: 19.91 kB / 430.7 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.2369, allocations: 5.219 kB / 430.7 MB, free: 36.26 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 0.0001136/0.237, allocations: 177 kB / 430.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.237, allocations: 13.31 kB / 430.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.237, allocations: 14.69 kB / 430.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.237, allocations: 3.062 kB / 430.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.237, allocations: 0 / 430.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.237, allocations: 0 / 430.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.2374, allocations: 494.5 kB / 431.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2374, allocations: 4 kB / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.63e-05/0.2374, allocations: 10.91 kB / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2374, allocations: 0 / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.056e-06/0.2374, allocations: 9.469 kB / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2374, allocations: 0 / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2375, allocations: 2.812 kB / 431.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.2376, allocations: 311.4 kB / 431.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.2377, allocations: 96.64 kB / 431.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.2377, allocations: 0 / 431.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.126e-05/0.2378, allocations: 6.719 kB / 431.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.2378, allocations: 12.81 kB / 431.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.2379, allocations: 2.969 kB / 431.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.794e-05/0.2379, allocations: 126.9 kB / 432 MB, free: 35.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2379, allocations: 0 / 432 MB, free: 35.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.2382, allocations: 22.09 kB / 432 MB, free: 35.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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 8.827e-05/0.2383, allocations: 104 kB / 432.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.2385, allocations: 158 kB / 432.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2385, allocations: 2.875 kB / 432.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.052e-05/0.2386, allocations: 89.69 kB / 432.4 MB, free: 35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.2389, allocations: 9.469 kB / 432.4 MB, free: 35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.2393, allocations: 231.8 kB / 432.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.2395, allocations: 0.7114 MB / 433.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.636e-05/0.2395, allocations: 22.3 kB / 433.3 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.2396, allocations: 19.06 kB / 433.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2396, allocations: 0 / 433.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of Templates: time 0.002783/0.2424, allocations: 1.018 MB / 434.4 MB, free: 34.04 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches