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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.001482/0.001482, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.43/1.43, allocations: 205.1 MB / 224.4 MB, free: 12.27 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.001255/0.001255, allocations: 60.12 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08725/0.08851, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003259/0.09182, allocations: 1.675 MB / 329 MB, free: 2.688 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006964/0.09255, allocations: 259.2 kB / 329.3 MB, free: 2.434 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.09274, allocations: 7.938 kB / 329.3 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.09291, allocations: 27.67 kB / 329.3 MB, free: 2.398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.09302, allocations: 23.78 kB / 329.4 MB, free: 2.375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.09356, allocations: 111.8 kB / 329.5 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.09396, allocations: 263.5 kB / 329.7 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000389/0.09436, allocations: 193.4 kB / 329.9 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.09452, allocations: 91.7 kB / 330 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.09473, allocations: 95.53 kB / 330.1 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/0.0948, allocations: 24 kB / 330.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.09491, allocations: 32 kB / 330.2 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.65e-05/0.09499, allocations: 59.81 kB / 330.2 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.09513, allocations: 99.47 kB / 330.3 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.09547, allocations: 231.5 kB / 330.5 MB, free: 1.199 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.09549, allocations: 0 / 330.5 MB, free: 1.199 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.0955, allocations: 4 kB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.09552, allocations: 4 kB / 330.5 MB, free: 1.191 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.0008954/0.09642, allocations: 493.9 kB / 331 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.09648, allocations: 8.031 kB / 331 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.065e-05/0.09657, allocations: 62.72 kB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.523e-05/0.09667, allocations: 24.66 kB / 331.1 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.09696, allocations: 228.1 kB / 331.3 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.09701, allocations: 24.94 kB / 331.4 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.09706, allocations: 28.38 kB / 331.4 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004954/0.09756, allocations: 278.5 kB / 331.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.09758, allocations: 3.938 kB / 331.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.629e-05/0.09762, allocations: 8 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.09763, allocations: 4 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.09796, allocations: 165.6 kB / 331.8 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.09912, allocations: 0.975 MB / 332.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.0994, allocations: 162.7 kB / 333 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.09952, allocations: 72.83 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.09955, allocations: 4 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.09981, allocations: 115.3 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.324e-06/0.09983, allocations: 0 / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004211/0.1003, allocations: 213.2 kB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1003, allocations: 59.41 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.1005, allocations: 159.4 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.1005, allocations: 33.7 kB / 333.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1006, allocations: 144.4 kB / 333.8 MB, free: 13.72 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.071e-05/0.1007, allocations: 59.3 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1008, allocations: 81.91 kB / 333.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1009, allocations: 330.8 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.101, allocations: 64.62 kB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.1012, allocations: 133.8 kB / 334.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.1015, allocations: 192.3 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1015, allocations: 3.938 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003726/0.1018, allocations: 245.3 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1019, allocations: 4 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1019, allocations: 4.281 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1019, allocations: 8 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.102, allocations: 31.92 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1021, allocations: 4 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1022, allocations: 31.67 kB / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.1022, allocations: 16 kB / 334.9 MB, free: 12.46 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.0001287/0.1023, allocations: 164.2 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.1024, allocations: 15.81 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003104/0.1027, allocations: 186.4 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1027, allocations: 4 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.1027, allocations: 0 / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1027, allocations: 0 / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006439/0.1034, allocations: 0.5948 MB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1034, allocations: 0 / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.44e-05/0.1035, allocations: 19.86 kB / 335.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.1035, allocations: 8 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.1035, allocations: 4 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1035, allocations: 7.938 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1035, allocations: 4 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.1038, allocations: 264.2 kB / 336.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.1039, allocations: 96.8 kB / 336.3 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.1039, allocations: 8 kB / 336.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.104, allocations: 11.98 kB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.1041, allocations: 27.91 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1041, allocations: 4 kB / 336.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.675e-05/0.1042, allocations: 101.6 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1042, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1045, allocations: 51.84 kB / 336.5 MB, free: 10.79 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.0005996/0.1051, allocations: 0.826 MB / 337.3 MB, free: 9.941 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.1055, allocations: 199.6 kB / 337.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1055, allocations: 0 / 337.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1056, allocations: 79.91 kB / 337.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.1059, allocations: 20 kB / 337.6 MB, free: 9.648 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.108, allocations: 2.028 MB / 339.6 MB, free: 7.484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.1083, allocations: 0.7363 MB / 340.4 MB, free: 6.723 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.866e-05/0.1084, allocations: 21.95 kB / 340.4 MB, free: 6.703 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.989e-05/0.1085, allocations: 67.41 kB / 340.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1085, allocations: 0 / 340.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.1304, allocations: 3.588 MB / 344.1 MB, free: 2.992 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/7.89, allocations: 19.72 kB / 344.1 MB, free: 2.973 MB / 286.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/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