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.0009477/0.0009478, allocations: 96.11 kB / 17.3 MB, free: 6.391 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.001204/0.001204, allocations: 174.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004466/0.0004466, allocations: 12 kB / 281.4 MB, free: 3.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1027, allocations: 47.59 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001803/0.1045, allocations: 1.422 MB / 330.4 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005701/0.1051, allocations: 271.1 kB / 330.6 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.86e-05/0.1052, allocations: 8 kB / 330.6 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.466e-05/0.1053, allocations: 15.8 kB / 330.7 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.1053, allocations: 11.92 kB / 330.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.1057, allocations: 99.89 kB / 330.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.1059, allocations: 247.5 kB / 331 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.1062, allocations: 161.9 kB / 331.2 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.559e-05/0.1063, allocations: 67.66 kB / 331.2 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1064, allocations: 75.61 kB / 331.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.1064, allocations: 12 kB / 331.3 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.332e-05/0.1065, allocations: 23.98 kB / 331.3 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.019e-05/0.1066, allocations: 39.83 kB / 331.4 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.771e-05/0.1067, allocations: 105.2 kB / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1069, allocations: 207.5 kB / 331.7 MB, free: 1.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1069, allocations: 0 / 331.7 MB, free: 1.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1069, allocations: 0 / 331.7 MB, free: 1.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.1069, allocations: 0 / 331.7 MB, free: 1.02 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.0005824/0.1075, allocations: 453.9 kB / 332.1 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.1076, allocations: 8.031 kB / 332.1 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.427e-05/0.1076, allocations: 24.75 kB / 332.2 MB, free: 496 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.1079, allocations: 244 kB / 332.4 MB, free: 212 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.1079, allocations: 20.94 kB / 332.4 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.108, allocations: 24.38 kB / 332.4 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.1084, allocations: 282.6 kB / 332.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1084, allocations: 192 / 332.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.1085, allocations: 15.94 kB / 332.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.1085, allocations: 12 kB / 332.8 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.1088, allocations: 165.5 kB / 332.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.1099, allocations: 0.9632 MB / 333.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.1102, allocations: 162.8 kB / 334 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.1103, allocations: 76.81 kB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.1103, allocations: 4 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.1105, allocations: 107.4 kB / 334.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.1105, allocations: 0 / 334.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000399/0.1109, allocations: 217.8 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.111, allocations: 59.41 kB / 334.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1111, allocations: 157.2 kB / 334.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1112, allocations: 37.7 kB / 334.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.825e-05/0.1113, allocations: 136.5 kB / 334.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/0.1113, allocations: 59.19 kB / 334.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-05/0.1114, allocations: 53.69 kB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1115, allocations: 334.8 kB / 335.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1116, allocations: 60.62 kB / 335.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.1118, allocations: 141.8 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.112, allocations: 196.2 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.112, allocations: 0 / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003653/0.1124, allocations: 245.2 kB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1124, allocations: 10.66 kB / 335.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1125, allocations: 0 / 335.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1125, allocations: 7.984 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.1126, allocations: 31.92 kB / 335.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.1126, allocations: 4 kB / 335.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.1127, allocations: 35.62 kB / 336 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.1128, allocations: 12.28 kB / 336 MB, free: 12.4 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.0001389/0.1129, allocations: 168.3 kB / 336.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.124e-05/0.1129, allocations: 11.91 kB / 336.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003291/0.1133, allocations: 190.4 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1133, allocations: 7.938 kB / 336.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1133, allocations: 0 / 336.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1133, allocations: 0 / 336.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006844/0.114, allocations: 0.591 MB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.114, allocations: 0 / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.08e-05/0.1141, allocations: 19.94 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1141, allocations: 3.938 kB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1141, allocations: 7.984 kB / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1141, allocations: 0 / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1141, allocations: 4 kB / 337 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.1144, allocations: 279.2 kB / 337.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.1145, allocations: 92.89 kB / 337.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.1145, allocations: 7.922 kB / 337.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.055e-05/0.1146, allocations: 8 kB / 337.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.742e-05/0.1147, allocations: 23.97 kB / 337.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.1147, allocations: 4 kB / 337.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.647e-05/0.1148, allocations: 103.2 kB / 337.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1148, allocations: 0 / 337.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.1151, allocations: 59.75 kB / 337.5 MB, free: 10.72 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.0001304/0.1152, allocations: 107.2 kB / 337.6 MB, free: 10.61 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002964/0.1155, allocations: 183.7 kB / 337.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1155, allocations: 0 / 337.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.1157, allocations: 79.91 kB / 337.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1159, allocations: 20.55 kB / 337.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006058/0.1166, allocations: 416 kB / 338.3 MB, free: 9.898 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.1168, allocations: 0.7365 MB / 339.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.802e-05/0.1169, allocations: 21.95 kB / 339.1 MB, free: 9.117 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.2e-05/0.117, allocations: 23.42 kB / 339.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.117, allocations: 0 / 339.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of Templates: time 0.004417/0.1214, allocations: 1.702 MB / 340.8 MB, free: 7.395 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