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: translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 102.2 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001278, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1314/0.1314, allocations: 16.73 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 65.91 kB / 373 MB, free: 48.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.0979, allocations: 53.48 MB / 426.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002131/0.1001, allocations: 1.049 MB / 427.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008683/0.101, allocations: 399 kB / 427.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.1012, allocations: 7.938 kB / 428 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.1016, allocations: 47.72 kB / 428 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005565/0.1023, allocations: 43.66 kB / 428 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006168/0.1029, allocations: 119.8 kB / 428.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000665/0.1036, allocations: 319.4 kB / 428.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.1037, allocations: 20.41 kB / 428.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.1041, allocations: 143.6 kB / 428.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.1043, allocations: 59.45 kB / 428.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.1043, allocations: 8 kB / 428.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.1046, allocations: 51.95 kB / 428.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.1047, allocations: 23.91 kB / 428.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.1048, allocations: 39.69 kB / 428.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.1052, allocations: 119.6 kB / 428.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1053, allocations: 0 / 428.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1053, allocations: 0 / 428.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.1053, allocations: 0 / 428.9 MB, free: 9.324 MB / 302.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.0007693/0.1061, allocations: 424.8 kB / 429.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.1061, allocations: 15.89 kB / 429.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.1062, allocations: 20.69 kB / 429.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1065, allocations: 196.6 kB / 429.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.1066, allocations: 8.375 kB / 429.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.1066, allocations: 7.938 kB / 429.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.1068, allocations: 105.9 kB / 429.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1068, allocations: 0 / 429.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.1069, allocations: 8 kB / 429.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.1069, allocations: 7.938 kB / 429.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.107, allocations: 47.91 kB / 429.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008104/0.1078, allocations: 0.8121 MB / 430.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.108, allocations: 58.55 kB / 430.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.355e-05/0.1081, allocations: 16.98 kB / 430.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.1081, allocations: 0 / 430.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.1081, allocations: 30.56 kB / 430.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.1081, allocations: 0 / 430.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002539/0.1084, allocations: 127.1 kB / 430.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.1084, allocations: 89.09 kB / 430.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.1086, allocations: 170.2 kB / 431 MB, free: 6.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.1086, allocations: 29.7 kB / 431.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.1086, allocations: 107.9 kB / 431.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.1087, allocations: 23.73 kB / 431.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.1087, allocations: 37.61 kB / 431.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.1088, allocations: 318.8 kB / 431.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.873e-05/0.1088, allocations: 16 kB / 431.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.601e-05/0.1089, allocations: 56.27 kB / 431.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.55e-05/0.109, allocations: 127.6 kB / 431.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.109, allocations: 7.984 kB / 431.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001519/0.1092, allocations: 139.1 kB / 431.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.1092, allocations: 33.7 kB / 431.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1092, allocations: 0 / 431.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1092, allocations: 4.047 kB / 431.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.975e-05/0.1093, allocations: 19.92 kB / 431.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.1093, allocations: 7.938 kB / 432 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.051e-05/0.1093, allocations: 11.91 kB / 432 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.1094, allocations: 4.203 kB / 432 MB, free: 5.918 MB / 302.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 9.081e-05/0.1095, allocations: 159.5 kB / 432.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.955e-05/0.1095, allocations: 7.906 kB / 432.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001663/0.1097, allocations: 133.6 kB / 432.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1097, allocations: 4 kB / 432.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1097, allocations: 0 / 432.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1097, allocations: 0 / 432.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.427e-05/0.1098, allocations: 185.6 kB / 432.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1098, allocations: 0 / 432.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.852e-05/0.1098, allocations: 11.98 kB / 432.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1098, allocations: 0 / 432.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1098, allocations: 3.938 kB / 432.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1099, allocations: 7.984 kB / 432.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1099, allocations: 0 / 432.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.11, allocations: 126.7 kB / 432.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.11, allocations: 84.92 kB / 432.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.1101, allocations: 7.938 kB / 432.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.905e-05/0.1101, allocations: 4 kB / 432.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.1101, allocations: 7.984 kB / 432.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1101, allocations: 7.938 kB / 432.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.31e-05/0.1102, allocations: 123.8 kB / 432.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1102, allocations: 0 / 432.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002175/0.1104, allocations: 24 kB / 432.8 MB, free: 4.918 MB / 302.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.0001505/0.1106, allocations: 115.2 kB / 433 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.1108, allocations: 111.5 kB / 433.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1108, allocations: 4.062 kB / 433.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.972e-05/0.1108, allocations: 75.39 kB / 433.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.111, allocations: 8 kB / 433.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004442/0.1115, allocations: 229.6 kB / 433.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.1116, allocations: 0.7002 MB / 434.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.51e-05/0.1117, allocations: 52.48 kB / 434.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.377e-05/0.1117, allocations: 27.36 kB / 434.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1117, allocations: 0 / 434.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of Templates: time 0.003304/0.1151, allocations: 0.872 MB / 435 MB, free: 2.652 MB / 302.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile (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 & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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