Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009526/0.0009525, allocations: 96.27 kB / 17.3 MB, free: 6.34 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.001023/0.001023, allocations: 177 kB / 18.2 MB, free: 5.527 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.754/1.754, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0004921/0.0004924, allocations: 12 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1122, allocations: 47.59 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002168/0.1145, allocations: 1.401 MB / 330.4 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000668/0.1152, allocations: 263.1 kB / 330.6 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.518e-05/0.1153, allocations: 4 kB / 330.6 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.1154, allocations: 23.8 kB / 330.6 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.853e-05/0.1154, allocations: 15.86 kB / 330.7 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.1158, allocations: 99.89 kB / 330.8 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000267/0.1161, allocations: 255.5 kB / 331 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/0.1163, allocations: 167.3 kB / 331.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.172e-05/0.1164, allocations: 63.72 kB / 331.2 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.1165, allocations: 83.55 kB / 331.3 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.1166, allocations: 8 kB / 331.3 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.724e-05/0.1166, allocations: 23.98 kB / 331.3 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.1167, allocations: 35.84 kB / 331.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.275e-05/0.1168, allocations: 113.2 kB / 331.5 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.1171, allocations: 219.3 kB / 331.7 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1171, allocations: 4 kB / 331.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1172, allocations: 0 / 331.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.1172, allocations: 0 / 331.7 MB, free: 0.9805 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.0006162/0.1178, allocations: 442.2 kB / 332.1 MB, free: 0.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1178, allocations: 11.97 kB / 332.1 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.941e-05/0.1179, allocations: 24.75 kB / 332.2 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.1181, allocations: 232 kB / 332.4 MB, free: 204 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.1182, allocations: 20.94 kB / 332.4 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.1182, allocations: 32.38 kB / 332.4 MB, free: 152 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.1187, allocations: 270.5 kB / 332.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1187, allocations: 3.938 kB / 332.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.1187, allocations: 16 kB / 332.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1187, allocations: 8 kB / 332.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.1191, allocations: 165.6 kB / 332.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.1202, allocations: 0.9711 MB / 333.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.1205, allocations: 154.8 kB / 334 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.1206, allocations: 80.77 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1206, allocations: 4 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.1208, allocations: 111.4 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.1209, allocations: 0 / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004/0.1213, allocations: 209.9 kB / 334.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1213, allocations: 59.34 kB / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.1214, allocations: 157.8 kB / 334.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.1215, allocations: 45.64 kB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.978e-05/0.1216, allocations: 144.5 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.1216, allocations: 55.25 kB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.1217, allocations: 53.69 kB / 334.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1218, allocations: 330.8 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.1219, allocations: 60.62 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.1221, allocations: 149.7 kB / 335.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.1223, allocations: 192.3 kB / 335.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1223, allocations: 4 kB / 335.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003504/0.1227, allocations: 245.5 kB / 335.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.1227, allocations: 12 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1227, allocations: 0 / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1227, allocations: 4 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.1229, allocations: 35.91 kB / 335.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.1229, allocations: 4 kB / 335.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.123, allocations: 31.69 kB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.123, allocations: 12 kB / 336 MB, free: 12.38 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.0001694/0.1232, allocations: 164.3 kB / 336.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.1233, allocations: 11.91 kB / 336.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003436/0.1236, allocations: 182.8 kB / 336.3 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1236, allocations: 4 kB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.1236, allocations: 0 / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1236, allocations: 3.984 kB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007408/0.1244, allocations: 0.5988 MB / 336.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1244, allocations: 3.984 kB / 336.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/0.1245, allocations: 23.88 kB / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1245, allocations: 0 / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.1245, allocations: 11.98 kB / 337 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1245, allocations: 0 / 337 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1245, allocations: 4 kB / 337 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.1248, allocations: 267.3 kB / 337.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.125e-05/0.1249, allocations: 104.8 kB / 337.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.125, allocations: 8 kB / 337.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.915e-05/0.125, allocations: 4 kB / 337.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.1251, allocations: 19.97 kB / 337.4 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1252, allocations: 4 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.246e-05/0.1252, allocations: 99.27 kB / 337.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1252, allocations: 0 / 337.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.1255, allocations: 55.83 kB / 337.5 MB, free: 10.71 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,step.localActive,transition1.enableFire,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.0001889/0.1257, allocations: 115.1 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.1261, allocations: 179.7 kB / 337.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1261, allocations: 7.875 kB / 337.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.1262, allocations: 83.84 kB / 337.9 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.1265, allocations: 23.92 kB / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006756/0.1272, allocations: 408.4 kB / 338.3 MB, free: 9.875 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.1276, allocations: 0.7365 MB / 339.1 MB, free: 9.113 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.607e-05/0.1277, allocations: 21.95 kB / 339.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.1278, allocations: 31.42 kB / 339.1 MB, free: 9.062 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1278, allocations: 0 / 339.1 MB, free: 9.062 MB / 286.1 MB Notification: Performance of Templates: time 0.00522/0.133, allocations: 1.708 MB / 340.8 MB, free: 7.359 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches