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.001257/0.001256, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001266/0.001266, allocations: 191 kB / 19.29 MB, free: 3.715 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.399/1.399, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001197/0.001197, allocations: 47.92 kB / 282.1 MB, free: 2.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08953/0.09074, allocations: 46.62 MB / 328.7 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002972/0.09375, allocations: 1.679 MB / 330.4 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006288/0.09441, allocations: 271.1 kB / 330.7 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.735e-05/0.09454, allocations: 7.938 kB / 330.7 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.09468, allocations: 23.73 kB / 330.7 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.156e-05/0.09475, allocations: 23.73 kB / 330.7 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.09517, allocations: 115.8 kB / 330.8 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.09551, allocations: 267.5 kB / 331.1 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.09583, allocations: 193.5 kB / 331.3 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.667e-05/0.09594, allocations: 83.72 kB / 331.4 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.09608, allocations: 103.5 kB / 331.5 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.09613, allocations: 23.94 kB / 331.5 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.919e-05/0.09621, allocations: 31.98 kB / 331.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.095e-05/0.0963, allocations: 55.83 kB / 331.6 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.87e-05/0.0964, allocations: 107.5 kB / 331.7 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.09667, allocations: 243.1 kB / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.09668, allocations: 0 / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.09669, allocations: 0 / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.09671, allocations: 0 / 331.9 MB, free: 0.5938 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.0006206/0.09733, allocations: 490.2 kB / 332.4 MB, free: 60 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.09737, allocations: 11.89 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.426e-05/0.09744, allocations: 24.66 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.09781, allocations: 236 kB / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.09787, allocations: 24.94 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.09791, allocations: 28.38 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004422/0.09836, allocations: 274.5 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.09838, allocations: 192 / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.09841, allocations: 15.94 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.09843, allocations: 4 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.09873, allocations: 165.6 kB / 333.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.09979, allocations: 0.9594 MB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.1001, allocations: 154.8 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.1002, allocations: 84.69 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.1002, allocations: 4 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.1004, allocations: 111.4 kB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.1004, allocations: 0 / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000393/0.1008, allocations: 213.3 kB / 334.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1009, allocations: 59.34 kB / 334.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.101, allocations: 161.5 kB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.101, allocations: 37.7 kB / 334.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.115e-05/0.1011, allocations: 136.5 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.1012, allocations: 63.19 kB / 335.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.1013, allocations: 78 kB / 335.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1014, allocations: 326.8 kB / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1015, allocations: 68.62 kB / 335.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.1017, allocations: 137.8 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.1019, allocations: 188.3 kB / 335.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1019, allocations: 0 / 335.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003687/0.1023, allocations: 261.1 kB / 336.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1023, allocations: 4 kB / 336.2 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1024, allocations: 4 kB / 336.2 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1024, allocations: 4 kB / 336.2 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.1025, allocations: 27.92 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.1025, allocations: 4 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1026, allocations: 39.95 kB / 336.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.1027, allocations: 12 kB / 336.2 MB, free: 11.93 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.0001604/0.1029, allocations: 160.3 kB / 336.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.1029, allocations: 15.81 kB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.1033, allocations: 190.4 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1033, allocations: 4 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1033, allocations: 0 / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1033, allocations: 0 / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.104, allocations: 0.5949 MB / 337.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.104, allocations: 0 / 337.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.09e-05/0.1041, allocations: 15.92 kB / 337.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1041, allocations: 7.938 kB / 337.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1041, allocations: 4 kB / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1041, allocations: 0 / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.1041, allocations: 4 kB / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.1044, allocations: 268.2 kB / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.1045, allocations: 92.86 kB / 337.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.1045, allocations: 11.94 kB / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.004e-05/0.1046, allocations: 7.984 kB / 337.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.1047, allocations: 27.89 kB / 337.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.1047, allocations: 4 kB / 337.6 MB, free: 10.42 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.835e-05/0.1048, allocations: 99.27 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1048, allocations: 0 / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.1051, allocations: 51.84 kB / 337.8 MB, free: 10.27 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.0001571/0.1053, allocations: 115.4 kB / 337.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.1056, allocations: 187.7 kB / 338.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1056, allocations: 4 kB / 338.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.1058, allocations: 83.84 kB / 338.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.1061, allocations: 16.56 kB / 338.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006105/0.1067, allocations: 340.7 kB / 338.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.107, allocations: 0.7361 MB / 339.3 MB, free: 8.746 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.75e-05/0.1071, allocations: 29.94 kB / 339.3 MB, free: 8.719 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.1071, allocations: 23.44 kB / 339.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1071, allocations: 0 / 339.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of Templates: time 0.004807/0.1119, allocations: 1.838 MB / 341.1 MB, free: 6.859 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 cvode -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