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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_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.001177/0.001177, allocations: 104 kB / 17.58 MB, free: 5.434 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.001089/0.001089, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.416/1.416, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001185/0.001185, allocations: 52.14 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09042, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002495/0.09295, allocations: 1.473 MB / 328.8 MB, free: 2.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005785/0.09355, allocations: 255.2 kB / 329.1 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.8e-05/0.09365, allocations: 4 kB / 329.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.09378, allocations: 23.73 kB / 329.1 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.145e-05/0.09383, allocations: 19.8 kB / 329.1 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.09418, allocations: 107.8 kB / 329.2 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.09445, allocations: 263.5 kB / 329.5 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.09472, allocations: 162.4 kB / 329.7 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.406e-05/0.09481, allocations: 79.72 kB / 329.7 MB, free: 2 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.09494, allocations: 99.59 kB / 329.8 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.423e-05/0.09498, allocations: 24 kB / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.235e-05/0.09506, allocations: 31.98 kB / 329.9 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.778e-05/0.09512, allocations: 51.84 kB / 329.9 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.055e-05/0.09522, allocations: 99.52 kB / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.09546, allocations: 223.6 kB / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.09547, allocations: 0 / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.09548, allocations: 0 / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.09549, allocations: 0 / 330.3 MB, free: 1.48 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.0005789/0.09607, allocations: 490.4 kB / 330.7 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.09611, allocations: 15.97 kB / 330.7 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.749e-05/0.09618, allocations: 58.72 kB / 330.8 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.09623, allocations: 16.75 kB / 330.8 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.09645, allocations: 228 kB / 331 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.09649, allocations: 24.94 kB / 331.1 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.09653, allocations: 20.38 kB / 331.1 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.0969, allocations: 244 kB / 331.3 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.09692, allocations: 11.88 kB / 331.3 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.09695, allocations: 8 kB / 331.3 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.09696, allocations: 8 kB / 331.4 MB, free: 276 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.09723, allocations: 157.7 kB / 331.5 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008823/0.09812, allocations: 0.7012 MB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.09841, allocations: 170.8 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.09853, allocations: 76.83 kB / 332.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.09856, allocations: 11.92 kB / 332.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.09874, allocations: 119.3 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.09875, allocations: 3.938 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003826/0.09914, allocations: 217.3 kB / 332.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.09919, allocations: 55.41 kB / 332.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.571e-05/0.09929, allocations: 145.9 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.09933, allocations: 37.7 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.0994, allocations: 128.6 kB / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.531e-05/0.09946, allocations: 71.19 kB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/0.09955, allocations: 70.02 kB / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.09965, allocations: 326.8 kB / 333.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.09976, allocations: 60.62 kB / 333.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.09991, allocations: 140 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.1001, allocations: 174.6 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1001, allocations: 8 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003327/0.1005, allocations: 241.2 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1005, allocations: 8 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1005, allocations: 3.984 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.1005, allocations: 4 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.1007, allocations: 27.92 kB / 334.3 MB, free: 13.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1007, allocations: 7.938 kB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.434e-05/0.1008, allocations: 35.89 kB / 334.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.1008, allocations: 12 kB / 334.3 MB, free: 13.12 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.0001228/0.1009, allocations: 157.7 kB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.101, allocations: 15.91 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003202/0.1013, allocations: 190.4 kB / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.1013, allocations: 0 / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1013, allocations: 0 / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1013, allocations: 7.984 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.102, allocations: 0.5685 MB / 335.2 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.102, allocations: 0 / 335.2 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.491e-05/0.1021, allocations: 19.92 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.1021, allocations: 0 / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1021, allocations: 8 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1021, allocations: 0 / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.1021, allocations: 7.922 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.1024, allocations: 271.4 kB / 335.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.1024, allocations: 100.8 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.1025, allocations: 11.94 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.819e-05/0.1026, allocations: 8 kB / 335.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.1026, allocations: 23.91 kB / 335.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.1026, allocations: 12 kB / 335.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.595e-05/0.1027, allocations: 91.77 kB / 335.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1027, allocations: 4 kB / 335.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.103, allocations: 51.84 kB / 335.8 MB, free: 11.48 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.0005409/0.1035, allocations: 0.8183 MB / 336.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.1039, allocations: 192.3 kB / 336.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1039, allocations: 12 kB / 336.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.104, allocations: 87.91 kB / 337 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.1043, allocations: 23.92 kB / 337 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.1063, allocations: 1.988 MB / 339 MB, free: 8.211 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1066, allocations: 0.7363 MB / 339.7 MB, free: 7.449 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.1067, allocations: 25.94 kB / 339.7 MB, free: 7.426 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1069, allocations: 55.42 kB / 339.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1069, allocations: 0 / 339.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.126, allocations: 3.585 MB / 343.4 MB, free: 3.734 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/7.877, allocations: 15.45 kB / 343.4 MB, free: 3.719 MB / 286.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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