Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 114.3 kB / 17.28 MB, free: 6.199 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.001724/0.001724, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 51.92 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0999/0.1011, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003124/0.1043, allocations: 1.772 MB / 328.5 MB, free: 3.016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005766/0.1049, allocations: 263.2 kB / 328.8 MB, free: 2.758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.465e-05/0.105, allocations: 7.938 kB / 328.8 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1051, allocations: 19.88 kB / 328.8 MB, free: 2.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.112e-05/0.1052, allocations: 15.84 kB / 328.8 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.1055, allocations: 99.91 kB / 328.9 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.1058, allocations: 271.5 kB / 329.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.1061, allocations: 193.4 kB / 329.4 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.172e-05/0.1062, allocations: 87.7 kB / 329.5 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.1063, allocations: 95.59 kB / 329.6 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.1063, allocations: 24 kB / 329.6 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.1064, allocations: 32 kB / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.984e-05/0.1065, allocations: 67.75 kB / 329.7 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.449e-05/0.1066, allocations: 99.47 kB / 329.8 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1069, allocations: 235.5 kB / 330 MB, free: 1.535 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1069, allocations: 3.938 kB / 330 MB, free: 1.531 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1069, allocations: 0 / 330 MB, free: 1.531 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1069, allocations: 4 kB / 330 MB, free: 1.527 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006443/0.1075, allocations: 486 kB / 330.5 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1076, allocations: 11.89 kB / 330.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.1077, allocations: 28.66 kB / 330.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.1079, allocations: 232.1 kB / 330.8 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.108, allocations: 20.94 kB / 330.8 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.108, allocations: 28.38 kB / 330.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.1084, allocations: 270.6 kB / 331.1 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1084, allocations: 192 / 331.1 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.1085, allocations: 15.94 kB / 331.1 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1085, allocations: 7.938 kB / 331.1 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.1088, allocations: 169.6 kB / 331.3 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.1099, allocations: 0.9672 MB / 332.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.1101, allocations: 158.7 kB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.1103, allocations: 72.88 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.1103, allocations: 4 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002617/0.1105, allocations: 119.3 kB / 332.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.473e-06/0.1106, allocations: 0 / 332.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003919/0.111, allocations: 205.9 kB / 332.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.111, allocations: 55.41 kB / 332.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1111, allocations: 161.6 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.1112, allocations: 37.69 kB / 333 MB, free: 14.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.892e-05/0.1112, allocations: 132.5 kB / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.241e-05/0.1113, allocations: 67.19 kB / 333.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.993e-05/0.1114, allocations: 74 kB / 333.3 MB, free: 14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1116, allocations: 330.8 kB / 333.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1117, allocations: 68.56 kB / 333.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1118, allocations: 145.7 kB / 333.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.1121, allocations: 192.3 kB / 334 MB, free: 13.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1121, allocations: 3.984 kB / 334 MB, free: 13.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003408/0.1124, allocations: 253.2 kB / 334.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1125, allocations: 4 kB / 334.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.1125, allocations: 4 kB / 334.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1125, allocations: 4 kB / 334.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.1126, allocations: 27.92 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1126, allocations: 7.984 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1128, allocations: 35.69 kB / 334.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.1128, allocations: 12 kB / 334.4 MB, free: 12.86 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.000143/0.1129, allocations: 160.5 kB / 334.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.113, allocations: 15.81 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003108/0.1133, allocations: 190.3 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1133, allocations: 4 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1133, allocations: 0 / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1133, allocations: 3.984 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006841/0.114, allocations: 0.5949 MB / 335.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.114, allocations: 0 / 335.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.361e-05/0.1141, allocations: 15.98 kB / 335.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1141, allocations: 11.88 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1141, allocations: 3.938 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1141, allocations: 0 / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1142, allocations: 4 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003048/0.1145, allocations: 263.3 kB / 335.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.1145, allocations: 100.8 kB / 335.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.1146, allocations: 11.98 kB / 335.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-05/0.1147, allocations: 8 kB / 335.7 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.798e-05/0.1147, allocations: 19.97 kB / 335.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.1148, allocations: 4 kB / 335.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.178e-05/0.1148, allocations: 100.4 kB / 335.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1148, allocations: 0 / 335.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1152, allocations: 51.84 kB / 335.9 MB, free: 11.2 MB / 286.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: 19 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001687/0.1153, allocations: 115.1 kB / 336 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.1157, allocations: 195.7 kB / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1157, allocations: 0 / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.1159, allocations: 79.91 kB / 336.3 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.1162, allocations: 27.92 kB / 336.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006603/0.1169, allocations: 413.2 kB / 336.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1172, allocations: 0.74 MB / 337.5 MB, free: 9.59 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.044e-05/0.1173, allocations: 21.95 kB / 337.5 MB, free: 9.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.206e-05/0.1174, allocations: 27.42 kB / 337.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1174, allocations: 0 / 337.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of Templates: time 0.004719/0.1221, allocations: 1.808 MB / 339.3 MB, free: 7.742 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches