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.001283/0.001283, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001363/0.001363, allocations: 191 kB / 19.29 MB, free: 3.848 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.564/1.564, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001153/0.001153, allocations: 47.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09716, allocations: 46.63 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003142/0.1004, allocations: 1.683 MB / 330.4 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006215/0.101, allocations: 263.2 kB / 330.7 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.192e-05/0.1011, allocations: 11.88 kB / 330.7 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.1013, allocations: 23.73 kB / 330.7 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.376e-05/0.1013, allocations: 15.75 kB / 330.7 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.1017, allocations: 119.8 kB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003082/0.102, allocations: 275.5 kB / 331.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.1024, allocations: 185.5 kB / 331.3 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.529e-05/0.1025, allocations: 87.72 kB / 331.4 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.1026, allocations: 107.5 kB / 331.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.1027, allocations: 20 kB / 331.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.687e-05/0.1027, allocations: 28 kB / 331.5 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.1028, allocations: 59.83 kB / 331.6 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.1029, allocations: 99.52 kB / 331.7 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.1032, allocations: 243.1 kB / 331.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1032, allocations: 0 / 331.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1032, allocations: 4 kB / 331.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1032, allocations: 0 / 331.9 MB, free: 0.5664 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.0007364/0.104, allocations: 490.2 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.104, allocations: 11.89 kB / 332.4 MB, free: 20 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/0.1041, allocations: 24.83 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.1045, allocations: 232 kB / 332.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.1045, allocations: 20.94 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.1046, allocations: 32.38 kB / 332.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.1051, allocations: 274.5 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1051, allocations: 192 / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.1051, allocations: 15.94 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1051, allocations: 4 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.1054, allocations: 165.6 kB / 333.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.1066, allocations: 0.9672 MB / 334.1 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.1069, allocations: 158.6 kB / 334.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.107, allocations: 76.92 kB / 334.3 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.107, allocations: 3.984 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.1072, allocations: 115.3 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.432e-06/0.1072, allocations: 0 / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003929/0.1076, allocations: 209.3 kB / 334.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1077, allocations: 59.28 kB / 334.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.1078, allocations: 162.3 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.1078, allocations: 41.69 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1079, allocations: 136.5 kB / 335.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.108, allocations: 59.19 kB / 335.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.1081, allocations: 82 kB / 335.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1082, allocations: 322.8 kB / 335.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1083, allocations: 64.62 kB / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.1085, allocations: 141.8 kB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.1087, allocations: 192.3 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1088, allocations: 0 / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000366/0.1091, allocations: 253.2 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.1091, allocations: 7.938 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1092, allocations: 4 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1092, allocations: 4 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.1093, allocations: 35.92 kB / 336.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.1094, allocations: 7.984 kB / 336.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1095, allocations: 27.69 kB / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.1095, allocations: 12 kB / 336.2 MB, free: 11.89 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.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,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.0001475/0.1097, allocations: 164.5 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.1097, allocations: 11.81 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003185/0.11, allocations: 186.4 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.11, allocations: 8 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.11, allocations: 0 / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.11, allocations: 7.969 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007002/0.1108, allocations: 0.5871 MB / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1108, allocations: 7.984 kB / 337.2 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.125e-05/0.1108, allocations: 15.94 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1109, allocations: 3.938 kB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1109, allocations: 4 kB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.1109, allocations: 7.984 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1109, allocations: 0 / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.1112, allocations: 260.2 kB / 337.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.1113, allocations: 92.86 kB / 337.6 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.1113, allocations: 19.92 kB / 337.6 MB, free: 10.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.1114, allocations: 8 kB / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.1115, allocations: 15.97 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1115, allocations: 8 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.233e-05/0.1115, allocations: 96.53 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1116, allocations: 3.938 kB / 337.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.1119, allocations: 51.84 kB / 337.8 MB, free: 10.24 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.localActive,transition1.enableFire,step.active,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: 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.0001599/0.112, allocations: 115.4 kB / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003167/0.1123, allocations: 191.7 kB / 338.1 MB, free: 9.934 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1124, allocations: 3.938 kB / 338.1 MB, free: 9.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.1125, allocations: 75.91 kB / 338.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.1128, allocations: 25.95 kB / 338.2 MB, free: 9.832 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005528/0.1133, allocations: 328.8 kB / 338.5 MB, free: 9.484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.1137, allocations: 0.7483 MB / 339.3 MB, free: 8.711 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.6e-05/0.1137, allocations: 25.95 kB / 339.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.1138, allocations: 27.42 kB / 339.3 MB, free: 8.66 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1138, allocations: 0 / 339.3 MB, free: 8.66 MB / 286.1 MB Notification: Performance of Templates: time 0.004539/0.1184, allocations: 1.834 MB / 341.1 MB, free: 6.828 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches