Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001104/0.001104, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.565/1.565, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001137/0.001137, allocations: 51.92 kB / 280.6 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.09663, allocations: 46.63 MB / 327.3 MB, free: 4.5 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002482/0.09917, allocations: 1.473 MB / 328.7 MB, free: 3.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005902/0.09978, allocations: 243.2 kB / 329 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.09988, allocations: 4 kB / 329 MB, free: 2.766 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1, allocations: 31.67 kB / 329 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.004e-05/0.1001, allocations: 11.81 kB / 329 MB, free: 2.723 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003835/0.1005, allocations: 107.8 kB / 329.1 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.1007, allocations: 263.5 kB / 329.4 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.101, allocations: 170.4 kB / 329.5 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.062e-05/0.1011, allocations: 91.69 kB / 329.6 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1012, allocations: 91.59 kB / 329.7 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.1013, allocations: 24 kB / 329.7 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.882e-05/0.1013, allocations: 32 kB / 329.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.464e-05/0.1014, allocations: 55.83 kB / 329.8 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.679e-05/0.1015, allocations: 99.52 kB / 329.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.1017, allocations: 223.3 kB / 330.2 MB, free: 1.582 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1017, allocations: 3.938 kB / 330.2 MB, free: 1.578 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1017, allocations: 0 / 330.2 MB, free: 1.578 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1018, allocations: 0 / 330.2 MB, free: 1.578 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006011/0.1024, allocations: 490.7 kB / 330.6 MB, free: 1.043 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.1024, allocations: 12.03 kB / 330.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.1025, allocations: 24.75 kB / 330.7 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.1027, allocations: 224 kB / 330.9 MB, free: 0.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.1027, allocations: 20.94 kB / 330.9 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.1028, allocations: 24.38 kB / 330.9 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003689/0.1032, allocations: 248 kB / 331.2 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.1032, allocations: 192 / 331.2 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1032, allocations: 11.94 kB / 331.2 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1032, allocations: 4 kB / 331.2 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002739/0.1035, allocations: 157.7 kB / 331.3 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008648/0.1044, allocations: 0.7013 MB / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.1046, allocations: 175.6 kB / 332.2 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1048, allocations: 80.83 kB / 332.3 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.1048, allocations: 4 kB / 332.3 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.105, allocations: 123.2 kB / 332.4 MB, free: 15.13 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.105, allocations: 4 kB / 332.4 MB, free: 15.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003965/0.1054, allocations: 213.3 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.1055, allocations: 63.34 kB / 332.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1056, allocations: 141.9 kB / 332.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.1056, allocations: 37.7 kB / 332.9 MB, free: 14.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.63e-05/0.1057, allocations: 136.6 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.03e-05/0.1058, allocations: 59.2 kB / 333.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/0.1059, allocations: 73.95 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.106, allocations: 334.8 kB / 333.5 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.1061, allocations: 64.62 kB / 333.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.1062, allocations: 128 kB / 333.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002141/0.1065, allocations: 174.6 kB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1065, allocations: 0 / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003252/0.1068, allocations: 245.2 kB / 334.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1068, allocations: 8 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1068, allocations: 4 kB / 334.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1069, allocations: 4 kB / 334.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.107, allocations: 31.92 kB / 334.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.107, allocations: 7.938 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.1071, allocations: 27.77 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.1071, allocations: 8 kB / 334.1 MB, free: 13.3 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001311/0.1073, allocations: 162.2 kB / 334.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.1073, allocations: 19.75 kB / 334.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003282/0.1076, allocations: 190.4 kB / 334.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1076, allocations: 4 kB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1076, allocations: 0 / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1077, allocations: 3.984 kB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006342/0.1083, allocations: 0.5685 MB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1083, allocations: 3.984 kB / 335.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.1084, allocations: 19.94 kB / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1084, allocations: 0 / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1084, allocations: 8 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1084, allocations: 3.984 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1084, allocations: 3.938 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.1087, allocations: 271.3 kB / 335.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.1088, allocations: 100.8 kB / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.1088, allocations: 4 kB / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.434e-05/0.1089, allocations: 8 kB / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.109, allocations: 31.84 kB / 335.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.109, allocations: 4 kB / 335.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.347e-05/0.1091, allocations: 91.77 kB / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1091, allocations: 0 / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1094, allocations: 55.83 kB / 335.7 MB, free: 11.66 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001779/0.1096, allocations: 119.2 kB / 335.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.1099, allocations: 195.7 kB / 336 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1099, allocations: 0 / 336 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.1101, allocations: 79.92 kB / 336.1 MB, free: 11.26 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1103, allocations: 23.92 kB / 336.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005582/0.1109, allocations: 329.1 kB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1112, allocations: 0.7402 MB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.273e-05/0.1113, allocations: 21.95 kB / 337.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.081e-05/0.1113, allocations: 23.42 kB / 337.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1114, allocations: 0 / 337.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of Templates: time 0.004447/0.1158, allocations: 1.88 MB / 339.1 MB, free: 8.215 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches