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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003266/0.003266, allocations: 218.1 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.576/1.576, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.1316/0.1316, allocations: 16.94 MB / 329.4 MB, free: 2.285 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 67.89 kB / 460.3 MB, free: 1.809 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1379, allocations: 57.63 MB / 0.5057 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002721/0.1406, allocations: 1.068 MB / 0.5068 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.1414, allocations: 271.7 kB / 0.507 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.932e-05/0.1414, allocations: 0 / 0.507 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.1416, allocations: 43.66 kB / 0.5071 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.1419, allocations: 43.72 kB / 0.5071 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.142, allocations: 79.84 kB / 0.5072 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.1424, allocations: 235.5 kB / 0.5074 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.359e-05/0.1424, allocations: 16.58 kB / 0.5074 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.1426, allocations: 115.6 kB / 0.5076 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.1427, allocations: 51.53 kB / 0.5076 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.271e-05/0.1427, allocations: 4 kB / 0.5076 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.1428, allocations: 15.98 kB / 0.5076 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.108e-05/0.1429, allocations: 31.78 kB / 0.5077 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.1429, allocations: 43.67 kB / 0.5077 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.1431, allocations: 79.59 kB / 0.5078 GB, free: 6.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1431, allocations: 0 / 0.5078 GB, free: 6.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1431, allocations: 0 / 0.5078 GB, free: 6.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1431, allocations: 0 / 0.5078 GB, free: 6.008 MB / 382.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.0006127/0.1437, allocations: 371.4 kB / 0.5081 GB, free: 5.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1438, allocations: 8.031 kB / 0.5081 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.1438, allocations: 12.89 kB / 0.5081 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.144, allocations: 152.3 kB / 0.5083 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.144, allocations: 4 kB / 0.5083 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.1441, allocations: 8 kB / 0.5083 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.1444, allocations: 134.7 kB / 0.5084 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1444, allocations: 3.938 kB / 0.5084 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1444, allocations: 3.984 kB / 0.5084 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1444, allocations: 4 kB / 0.5084 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.1446, allocations: 63.89 kB / 0.5085 GB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008658/0.1455, allocations: 0.731 MB / 0.5092 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.1457, allocations: 81.22 kB / 0.5093 GB, free: 4.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.609e-05/0.1457, allocations: 33.7 kB / 0.5093 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.1457, allocations: 3.938 kB / 0.5093 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.1459, allocations: 85.11 kB / 0.5094 GB, free: 4.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1459, allocations: 0 / 0.5094 GB, free: 4.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003932/0.1463, allocations: 167.2 kB / 0.5096 GB, free: 3.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.1464, allocations: 102.8 kB / 0.5097 GB, free: 3.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.1466, allocations: 178.9 kB / 0.5098 GB, free: 3.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.1466, allocations: 29.7 kB / 0.5099 GB, free: 3.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.1467, allocations: 120.3 kB / 0.51 GB, free: 3.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.1467, allocations: 19.86 kB / 0.51 GB, free: 3.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.1468, allocations: 37.7 kB / 0.51 GB, free: 3.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.147, allocations: 326.8 kB / 0.5104 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-05/0.1471, allocations: 35.91 kB / 0.5104 GB, free: 3.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.1472, allocations: 78.8 kB / 0.5105 GB, free: 2.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.1476, allocations: 273.7 kB / 0.5107 GB, free: 2.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1476, allocations: 0 / 0.5107 GB, free: 2.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003159/0.1479, allocations: 199 kB / 0.5109 GB, free: 2.445 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.1479, allocations: 33.69 kB / 0.5109 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1479, allocations: 4 kB / 0.5109 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.148, allocations: 0 / 0.5109 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.482e-05/0.1481, allocations: 12 kB / 0.511 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.1481, allocations: 7.938 kB / 0.511 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.097e-05/0.1481, allocations: 19.94 kB / 0.511 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1481, allocations: 4 kB / 0.511 GB, free: 2.359 MB / 382.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.0001852/0.1483, allocations: 168.3 kB / 0.5111 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.1484, allocations: 19.88 kB / 0.5112 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.1484, allocations: 17.09 kB / 0.5112 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1484, allocations: 192 / 0.5112 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1484, allocations: 0 / 0.5112 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1484, allocations: 3.984 kB / 0.5112 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005476/0.149, allocations: 482.4 kB / 0.5116 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.149, allocations: 0 / 0.5116 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.94e-05/0.149, allocations: 4 kB / 0.5117 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.149, allocations: 0 / 0.5117 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.149, allocations: 0 / 0.5117 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.149, allocations: 8.125 kB / 0.5117 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.149, allocations: 0 / 0.5117 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.1493, allocations: 316.3 kB / 0.512 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.1493, allocations: 7.953 kB / 0.512 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.1494, allocations: 4 kB / 0.512 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1495, allocations: 7.984 kB / 0.512 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.1495, allocations: 11.98 kB / 0.512 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.1495, allocations: 0 / 0.512 GB, free: 1.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.857e-05/0.1496, allocations: 120.2 kB / 0.5121 GB, free: 1.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1496, allocations: 0 / 0.5121 GB, free: 1.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.1499, allocations: 35.88 kB / 0.5121 GB, free: 1.078 MB / 382.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 0.0001418/0.1501, allocations: 107.2 kB / 0.5122 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.1504, allocations: 135.3 kB / 0.5124 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1504, allocations: 3.938 kB / 0.5124 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1505, allocations: 87.33 kB / 0.5125 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.1508, allocations: 15.38 kB / 0.5125 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005842/0.1514, allocations: 243.1 kB / 0.5127 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2335/0.3849, allocations: 0.7007 MB / 0.5134 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.3851, allocations: 28.09 kB / 0.5134 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.3851, allocations: 16.33 kB / 0.5134 GB, free: 15.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3851, allocations: 0 / 0.5134 GB, free: 15.01 MB / 382.1 MB Notification: Performance of Templates: time 0.004471/0.3896, allocations: 1.065 MB / 0.5145 GB, free: 15.01 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.201786047080532]