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.001516/0.001517, allocations: 115 kB / 16.42 MB, free: 6.465 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.001546/0.001546, allocations: 189.5 kB / 17.35 MB, free: 5.719 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07479/0.07479, allocations: 16.73 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.89 kB / 427 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09689, allocations: 53.48 MB / 480.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002426/0.09935, allocations: 1.062 MB / 481.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009095/0.1003, allocations: 387.1 kB / 481.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.1004, allocations: 4 kB / 481.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.1006, allocations: 47.7 kB / 482 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.1009, allocations: 43.66 kB / 482 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.1012, allocations: 119.8 kB / 482.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.1016, allocations: 311.3 kB / 482.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.776e-05/0.1017, allocations: 28.38 kB / 482.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1019, allocations: 155.6 kB / 482.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.102, allocations: 47.53 kB / 482.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.102, allocations: 4 kB / 482.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.1022, allocations: 55.95 kB / 482.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.1023, allocations: 23.86 kB / 482.7 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.646e-05/0.1023, allocations: 43.72 kB / 482.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1025, allocations: 115.6 kB / 482.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1026, allocations: 0 / 482.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1026, allocations: 4 kB / 482.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1026, allocations: 0 / 482.9 MB, free: 2.547 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.0005395/0.1031, allocations: 420.8 kB / 483.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1032, allocations: 11.89 kB / 483.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.882e-05/0.1032, allocations: 20.73 kB / 483.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.1035, allocations: 196.6 kB / 483.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.1035, allocations: 8.375 kB / 483.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.1035, allocations: 7.938 kB / 483.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.1037, allocations: 110 kB / 483.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.1037, allocations: 3.938 kB / 483.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1038, allocations: 4 kB / 483.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1038, allocations: 4 kB / 483.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.1039, allocations: 43.91 kB / 483.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008603/0.1048, allocations: 0.8197 MB / 484.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.1049, allocations: 50.62 kB / 484.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.1051, allocations: 20.97 kB / 484.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.1051, allocations: 7.938 kB / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.1051, allocations: 30.56 kB / 484.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.1051, allocations: 0 / 484.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002654/0.1054, allocations: 123.2 kB / 484.8 MB, free: 448 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.1055, allocations: 77.11 kB / 484.8 MB, free: 352 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.1056, allocations: 170.3 kB / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.1057, allocations: 25.7 kB / 485 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.621e-05/0.1058, allocations: 119.9 kB / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.1058, allocations: 15.81 kB / 485.2 MB, free: 0 / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.1059, allocations: 37.61 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.106, allocations: 322.8 kB / 485.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.733e-05/0.106, allocations: 19.98 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.065e-05/0.1061, allocations: 48.53 kB / 485.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.1063, allocations: 139.7 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1063, allocations: 3.938 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001977/0.1065, allocations: 143.1 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.1065, allocations: 29.7 kB / 485.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1065, allocations: 4 kB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1066, allocations: 12.05 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.199e-05/0.1066, allocations: 19.92 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1067, allocations: 0 / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.956e-05/0.1067, allocations: 15.84 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.1067, allocations: 4 kB / 485.9 MB, free: 15.14 MB / 366.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 0.0001138/0.1069, allocations: 152.4 kB / 486.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.1069, allocations: 7.906 kB / 486.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001979/0.1071, allocations: 117.6 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1071, allocations: 11.92 kB / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1071, allocations: 0 / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.16e-05/0.1072, allocations: 88.92 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.1072, allocations: 4 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.145e-05/0.1072, allocations: 4 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.1073, allocations: 0 / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001665/0.1074, allocations: 226.1 kB / 486.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001965/0.1076, allocations: 280.3 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.764e-05/0.1077, allocations: 19.98 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.255e-05/0.1078, allocations: 127.8 kB / 487 MB, free: 14.03 MB / 366.1 MB Notification: Performance of Backend: time 3.91e-07/0.1078, allocations: 0 / 487 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004745/0.1083, allocations: 189.6 kB / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of SimCode: time 0.0006071/0.1089, allocations: 0.7016 MB / 487.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of Templates: time 0.003827/0.1127, allocations: 1.09 MB / 488.9 MB, free: 11.97 MB / 366.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 -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