Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001604/0.001604, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001811/0.001811, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.384/1.384, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009929/0.0009931, allocations: 39.75 kB / 301.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1066, allocations: 49.46 MB / 350.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003093/0.1097, allocations: 1.656 MB / 352.4 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006808/0.1104, allocations: 283.1 kB / 352.7 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.845e-05/0.1105, allocations: 7.938 kB / 352.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.1107, allocations: 27.73 kB / 352.7 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.472e-05/0.1107, allocations: 15.75 kB / 352.7 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1112, allocations: 119.8 kB / 352.8 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.1115, allocations: 275.5 kB / 353.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.1118, allocations: 191 kB / 353.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.631e-05/0.1119, allocations: 87.72 kB / 353.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.112, allocations: 107.5 kB / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.1121, allocations: 20 kB / 353.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.891e-05/0.1122, allocations: 28 kB / 353.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.803e-05/0.1122, allocations: 67.75 kB / 353.6 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.1123, allocations: 99.53 kB / 353.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002948/0.1126, allocations: 239.5 kB / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1127, allocations: 0 / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1127, allocations: 0 / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1127, allocations: 4 kB / 353.9 MB, free: 1.152 MB / 286.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.0007274/0.1134, allocations: 0.4908 MB / 354.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1135, allocations: 15.89 kB / 354.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.1135, allocations: 28.64 kB / 354.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002636/0.1138, allocations: 224.1 kB / 354.7 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.1138, allocations: 24.94 kB / 354.7 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.1139, allocations: 32.3 kB / 354.7 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.1143, allocations: 274.6 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1144, allocations: 192 / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.1144, allocations: 7.938 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1144, allocations: 8 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.1147, allocations: 165.5 kB / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.1159, allocations: 0.9788 MB / 356.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.1162, allocations: 173.3 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1164, allocations: 85.66 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1164, allocations: 4 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.1167, allocations: 145 kB / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.1167, allocations: 0 / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004526/0.1172, allocations: 220.9 kB / 356.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.1172, allocations: 89.09 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.1174, allocations: 164.5 kB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.1174, allocations: 37.83 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.1175, allocations: 140.5 kB / 357.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.1175, allocations: 63.19 kB / 357.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-05/0.1176, allocations: 77.69 kB / 357.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1178, allocations: 330.8 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1179, allocations: 63.91 kB / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.1181, allocations: 148.3 kB / 357.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.1183, allocations: 197 kB / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1183, allocations: 0 / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000373/0.1187, allocations: 253.4 kB / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1187, allocations: 8 kB / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1187, allocations: 3.938 kB / 358.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1188, allocations: 4 kB / 358.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.1189, allocations: 35.92 kB / 358.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.1189, allocations: 4 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.1191, allocations: 31.67 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.1191, allocations: 12 kB / 358.4 MB, free: 12.34 MB / 302.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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001432/0.1192, allocations: 165.8 kB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1193, allocations: 19.8 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003288/0.1196, allocations: 190.3 kB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1196, allocations: 4 kB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1196, allocations: 0 / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1196, allocations: 0 / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007054/0.1204, allocations: 0.5947 MB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1204, allocations: 3.984 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.543e-05/0.1205, allocations: 19.94 kB / 359.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1205, allocations: 7.938 kB / 359.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.1205, allocations: 4 kB / 359.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1205, allocations: 11.97 kB / 359.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1205, allocations: 3.938 kB / 359.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.1208, allocations: 284.6 kB / 359.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.1209, allocations: 92.86 kB / 359.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.1209, allocations: 7.938 kB / 359.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.954e-05/0.121, allocations: 8 kB / 359.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.1211, allocations: 23.97 kB / 359.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.1211, allocations: 11.92 kB / 359.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.164e-05/0.1212, allocations: 95.27 kB / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1212, allocations: 0 / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1215, allocations: 51.84 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001437/0.1216, allocations: 119.1 kB / 360.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003767/0.122, allocations: 203.9 kB / 360.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.122, allocations: 0 / 360.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1222, allocations: 87.84 kB / 360.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.1225, allocations: 19.98 kB / 360.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.1231, allocations: 371 kB / 360.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1234, allocations: 0.7362 MB / 361.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.157e-05/0.1235, allocations: 31.42 kB / 361.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1235, allocations: 0 / 361.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Templates: time 0.004316/0.1278, allocations: 2.436 MB / 364 MB, free: 6.586 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches