Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",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.001126/0.001126, allocations: 108 kB / 16.92 MB, free: 5.664 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.001152/0.001152, allocations: 189.6 kB / 17.85 MB, free: 5.172 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.358/1.358, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.67 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09465, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002667/0.09735, allocations: 1.477 MB / 351.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006396/0.09801, allocations: 275.2 kB / 351.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.09813, allocations: 0 / 351.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.09828, allocations: 27.73 kB / 351.9 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.09834, allocations: 19.75 kB / 351.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.09874, allocations: 115.8 kB / 352.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.09905, allocations: 255.6 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.09935, allocations: 170.3 kB / 352.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.09947, allocations: 83.78 kB / 352.6 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.0996, allocations: 99.53 kB / 352.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.09965, allocations: 20 kB / 352.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.22e-05/0.09974, allocations: 31.98 kB / 352.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.09981, allocations: 47.91 kB / 352.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.09991, allocations: 95.52 kB / 352.8 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.1002, allocations: 231.2 kB / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1002, allocations: 0 / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1002, allocations: 0 / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1002, allocations: 0 / 353.1 MB, free: 1.395 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006445/0.1009, allocations: 494.8 kB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1009, allocations: 12.03 kB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.325e-05/0.101, allocations: 54.73 kB / 353.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.385e-05/0.1011, allocations: 20.75 kB / 353.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.1013, allocations: 228 kB / 353.9 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.1013, allocations: 20.94 kB / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.1014, allocations: 24.38 kB / 353.9 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.1018, allocations: 248 kB / 354.1 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1018, allocations: 7.875 kB / 354.2 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.1018, allocations: 12 kB / 354.2 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1018, allocations: 4 kB / 354.2 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002788/0.1021, allocations: 157.6 kB / 354.3 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009286/0.1031, allocations: 0.7012 MB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1034, allocations: 174.7 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1035, allocations: 76.83 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.1035, allocations: 15.92 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.1038, allocations: 115.3 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1038, allocations: 0 / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004257/0.1042, allocations: 224.9 kB / 355.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.1043, allocations: 59.39 kB / 355.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1044, allocations: 137.9 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.1044, allocations: 37.7 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.1046, allocations: 138.1 kB / 356 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.1046, allocations: 59.2 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.1047, allocations: 70.02 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1049, allocations: 330.8 kB / 356.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.105, allocations: 64.62 kB / 356.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.1052, allocations: 136.1 kB / 356.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.1054, allocations: 179.1 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.1054, allocations: 0 / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000389/0.1058, allocations: 241.2 kB / 357 MB, free: 13.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1058, allocations: 8 kB / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1059, allocations: 0 / 357 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1059, allocations: 4 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.106, allocations: 31.92 kB / 357.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.106, allocations: 8.219 kB / 357.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.1061, allocations: 31.67 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.1062, allocations: 15.94 kB / 357.1 MB, free: 13.04 MB / 302.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.0001414/0.1063, allocations: 157.6 kB / 357.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.1064, allocations: 15.89 kB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.1067, allocations: 194.4 kB / 357.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1067, allocations: 4 kB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1067, allocations: 4 kB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.1067, allocations: 3.984 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.1074, allocations: 0.5644 MB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1075, allocations: 0 / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.528e-05/0.1075, allocations: 15.94 kB / 358.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1075, allocations: 0 / 358.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1076, allocations: 11.98 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1076, allocations: 0 / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.1076, allocations: 11.92 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.1079, allocations: 275.7 kB / 358.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.108, allocations: 96.84 kB / 358.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.108, allocations: 0 / 358.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.1081, allocations: 11.94 kB / 358.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.1082, allocations: 27.91 kB / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.1082, allocations: 7.984 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.876e-05/0.1082, allocations: 106.2 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1082, allocations: 0 / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.1085, allocations: 55.83 kB / 358.7 MB, free: 11.38 MB / 302.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.0005589/0.1091, allocations: 0.806 MB / 359.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.1095, allocations: 200.2 kB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1095, allocations: 0 / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1096, allocations: 84.3 kB / 359.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.1099, allocations: 23.92 kB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.112, allocations: 1.994 MB / 361.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1123, allocations: 0.7361 MB / 362.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.259e-05/0.1124, allocations: 29.94 kB / 362.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.665e-05/0.1125, allocations: 63.34 kB / 362.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1125, allocations: 4 kB / 362.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.1311, allocations: 3.582 MB / 366.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.681, allocations: 10.27 kB / 366.2 MB, free: 3.73 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0022 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches