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.001191/0.001191, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001144/0.001144, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.457/1.457, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001306/0.001306, allocations: 51.94 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.105, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00356/0.1086, allocations: 1.683 MB / 376.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1097, allocations: 260.1 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.11, allocations: 11.94 kB / 376.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002048/0.1103, allocations: 27.67 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.1105, allocations: 15.81 kB / 376.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006448/0.1111, allocations: 115.8 kB / 376.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000505/0.1116, allocations: 267.5 kB / 377 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004994/0.1122, allocations: 181.5 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.1123, allocations: 87.66 kB / 377.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.1125, allocations: 103.5 kB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.1125, allocations: 24 kB / 377.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.1127, allocations: 40 kB / 377.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.269e-05/0.1127, allocations: 51.84 kB / 377.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.1129, allocations: 111.4 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.1133, allocations: 242.9 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1133, allocations: 0 / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1133, allocations: 0 / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.1133, allocations: 0 / 377.8 MB, free: 1.887 MB / 318.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.0008471/0.1142, allocations: 493.9 kB / 378.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1142, allocations: 8.031 kB / 378.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.988e-05/0.1143, allocations: 74.66 kB / 378.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/0.1144, allocations: 24.8 kB / 378.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.1148, allocations: 228.1 kB / 378.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.1148, allocations: 20.94 kB / 378.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.745e-05/0.1149, allocations: 28.38 kB / 378.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.1154, allocations: 274.5 kB / 378.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.1154, allocations: 11.92 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.1154, allocations: 12 kB / 379 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.1155, allocations: 4 kB / 379 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.1158, allocations: 161.6 kB / 379.1 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2475/0.3633, allocations: 0.9618 MB / 380.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.3637, allocations: 156.1 kB / 380.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.3638, allocations: 77.88 kB / 380.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.3638, allocations: 3.297 kB / 380.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.364, allocations: 118.8 kB / 380.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.554e-06/0.3641, allocations: 0 / 380.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004302/0.3645, allocations: 208.7 kB / 380.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.3645, allocations: 59.03 kB / 380.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.3647, allocations: 152.8 kB / 380.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.3647, allocations: 37.88 kB / 380.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.434e-05/0.3648, allocations: 148.5 kB / 381 MB, free: 11.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.753e-05/0.3649, allocations: 61.11 kB / 381.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.365, allocations: 82.86 kB / 381.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.114e-05/0.3651, allocations: 331.4 kB / 381.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.3652, allocations: 62.17 kB / 381.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.3653, allocations: 146.4 kB / 381.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.3656, allocations: 186.7 kB / 381.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3656, allocations: 2.078 kB / 381.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003775/0.366, allocations: 249.6 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.366, allocations: 6.625 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.366, allocations: 3.594 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.366, allocations: 4.125 kB / 382.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3662, allocations: 33.83 kB / 382.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.3662, allocations: 15.02 kB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.3663, allocations: 33.16 kB / 382.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.3664, allocations: 11.52 kB / 382.2 MB, free: 11.24 MB / 318.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.0001467/0.3665, allocations: 160.3 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.3666, allocations: 13.28 kB / 382.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003872/0.367, allocations: 187.3 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.367, allocations: 2.75 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.367, allocations: 7.156 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.367, allocations: 7.922 kB / 382.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008054/0.3678, allocations: 0.591 MB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3678, allocations: 0.5 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.259e-05/0.3679, allocations: 17.08 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3679, allocations: 2.156 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.3679, allocations: 6.5 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.368, allocations: 1.156 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.368, allocations: 1.281 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.3683, allocations: 277.7 kB / 383.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.623e-05/0.3683, allocations: 94.7 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.3683, allocations: 9.609 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.3684, allocations: 5.844 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.167e-05/0.3685, allocations: 20.34 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.3685, allocations: 10.36 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.194e-05/0.3686, allocations: 100.1 kB / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3686, allocations: 0 / 383.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.3689, allocations: 53.53 kB / 383.8 MB, free: 10.29 MB / 318.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.0005977/0.3695, allocations: 0.8212 MB / 384.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.37, allocations: 185.3 kB / 384.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.37, allocations: 0 / 384.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.3702, allocations: 85.02 kB / 384.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.3707, allocations: 26.47 kB / 384.9 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3733, allocations: 2.048 MB / 386.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.3736, allocations: 0.7316 MB / 387.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.3738, allocations: 26.86 kB / 387.7 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.3739, allocations: 64.61 kB / 387.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3739, allocations: 0 / 387.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.3978, allocations: 3.676 MB / 391.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.393/8.79, allocations: 13.06 kB / 391.4 MB, free: 6.395 MB / 318.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