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.001532/0.001532, allocations: 110.2 kB / 19.7 MB, free: 2.262 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.001688/0.001688, allocations: 222.7 kB / 23.01 MB, free: 4.609 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.406/1.406, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.07958/0.07958, allocations: 16.94 MB / 330.1 MB, free: 2.312 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.002011/0.002011, allocations: 63.91 kB / 461 MB, free: 1.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1272, allocations: 57.63 MB / 0.5065 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002604/0.1298, allocations: 1.073 MB / 0.5075 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007251/0.1305, allocations: 275.7 kB / 0.5078 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.1306, allocations: 4 kB / 0.5078 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1308, allocations: 35.72 kB / 0.5078 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.131, allocations: 55.66 kB / 0.5079 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.1312, allocations: 71.91 kB / 0.508 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.1315, allocations: 235.5 kB / 0.5082 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.25e-05/0.1316, allocations: 16.58 kB / 0.5082 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.1317, allocations: 115.6 kB / 0.5083 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.522e-05/0.1318, allocations: 47.53 kB / 0.5084 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.1318, allocations: 4 kB / 0.5084 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.397e-05/0.1319, allocations: 15.98 kB / 0.5084 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.132, allocations: 27.84 kB / 0.5084 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.774e-05/0.132, allocations: 43.67 kB / 0.5084 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.1322, allocations: 87.59 kB / 0.5085 GB, free: 6.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.1322, allocations: 0 / 0.5085 GB, free: 6.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1322, allocations: 0 / 0.5085 GB, free: 6.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1322, allocations: 0 / 0.5085 GB, free: 6.016 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.0005736/0.1328, allocations: 367.4 kB / 0.5089 GB, free: 5.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1328, allocations: 11.97 kB / 0.5089 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.1329, allocations: 12.89 kB / 0.5089 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.1331, allocations: 144.4 kB / 0.509 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.1331, allocations: 8 kB / 0.5091 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.1331, allocations: 8 kB / 0.5091 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.1334, allocations: 134.6 kB / 0.5092 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1334, allocations: 0 / 0.5092 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.1335, allocations: 8 kB / 0.5092 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1335, allocations: 0 / 0.5092 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.1337, allocations: 71.88 kB / 0.5093 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009354/0.1346, allocations: 0.7232 MB / 0.51 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.1348, allocations: 81.22 kB / 0.51 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.883e-05/0.1349, allocations: 33.7 kB / 0.5101 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.1349, allocations: 3.938 kB / 0.5101 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.1351, allocations: 105 kB / 0.5102 GB, free: 4.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.1351, allocations: 0 / 0.5102 GB, free: 4.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003515/0.1355, allocations: 155.2 kB / 0.5103 GB, free: 3.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.1355, allocations: 106.8 kB / 0.5104 GB, free: 3.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1357, allocations: 175 kB / 0.5106 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.1358, allocations: 29.7 kB / 0.5106 GB, free: 3.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.841e-05/0.1359, allocations: 120.2 kB / 0.5107 GB, free: 3.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.1359, allocations: 19.86 kB / 0.5108 GB, free: 3.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.064e-05/0.1359, allocations: 37.7 kB / 0.5108 GB, free: 3.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1361, allocations: 322.8 kB / 0.5111 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.011e-05/0.1362, allocations: 31.97 kB / 0.5111 GB, free: 3.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.1363, allocations: 90.73 kB / 0.5112 GB, free: 2.973 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.1367, allocations: 261.5 kB / 0.5115 GB, free: 2.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1367, allocations: 0 / 0.5115 GB, free: 2.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002941/0.137, allocations: 191.5 kB / 0.5117 GB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.137, allocations: 37.69 kB / 0.5117 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.137, allocations: 4 kB / 0.5117 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.137, allocations: 4 kB / 0.5117 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.228e-05/0.1371, allocations: 23.92 kB / 0.5117 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1371, allocations: 8.172 kB / 0.5117 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.268e-05/0.1372, allocations: 11.95 kB / 0.5117 GB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.1372, allocations: 8 kB / 0.5117 GB, free: 2.367 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.000184/0.1374, allocations: 168.1 kB / 0.5119 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.1374, allocations: 15.89 kB / 0.5119 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.1375, allocations: 13.09 kB / 0.5119 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1375, allocations: 4 kB / 0.5119 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.1375, allocations: 4 kB / 0.5119 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1375, allocations: 0 / 0.5119 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005502/0.138, allocations: 470.4 kB / 0.5124 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.138, allocations: 0 / 0.5124 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.813e-05/0.1381, allocations: 4 kB / 0.5124 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1381, allocations: 0 / 0.5124 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.1381, allocations: 4 kB / 0.5124 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1381, allocations: 0 / 0.5124 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1381, allocations: 4 kB / 0.5124 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.1384, allocations: 320.2 kB / 0.5127 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.1384, allocations: 7.953 kB / 0.5127 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.1384, allocations: 4 kB / 0.5127 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.1385, allocations: 7.984 kB / 0.5127 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.1386, allocations: 15.92 kB / 0.5127 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.1386, allocations: 8 kB / 0.5128 GB, free: 1.238 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.919e-05/0.1387, allocations: 120.2 kB / 0.5129 GB, free: 1.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1387, allocations: 0 / 0.5129 GB, free: 1.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.139, allocations: 27.88 kB / 0.5129 GB, free: 1.094 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.000127/0.1391, allocations: 99.23 kB / 0.513 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002935/0.1394, allocations: 151.7 kB / 0.5131 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1394, allocations: 7.938 kB / 0.5131 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1395, allocations: 83.39 kB / 0.5132 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1398, allocations: 11.23 kB / 0.5132 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005657/0.1404, allocations: 264.7 kB / 0.5135 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2327/0.3731, allocations: 0.7041 MB / 0.5142 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3732, allocations: 18.67 kB / 0.5142 GB, free: 15.08 MB / 382.1 MB Notification: Performance of SimCode: time 2.024e-06/0.3732, allocations: 0 / 0.5142 GB, free: 15.08 MB / 382.1 MB Notification: Performance of Templates: time 0.004032/0.3772, allocations: 1.459 MB / 0.5156 GB, free: 15.06 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/jenkins1/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: 7.402923289919272]