Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001261/0.001267, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001317/0.001318, allocations: 192 kB / 18.51 MB, free: 4.641 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.417/1.417, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001176/0.001176, allocations: 51.92 kB / 280.7 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.08054, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002949/0.08351, allocations: 1.651 MB / 329 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006195/0.08415, allocations: 263.2 kB / 329.3 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.08428, allocations: 7.938 kB / 329.3 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.08442, allocations: 27.73 kB / 329.3 MB, free: 2.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.493e-05/0.08449, allocations: 19.73 kB / 329.3 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.0849, allocations: 119.8 kB / 329.4 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.08522, allocations: 267.5 kB / 329.7 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.08554, allocations: 194.8 kB / 329.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.08564, allocations: 87.7 kB / 330 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.08578, allocations: 103.6 kB / 330.1 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.08583, allocations: 24 kB / 330.1 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.645e-05/0.08591, allocations: 27.98 kB / 330.1 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.08597, allocations: 59.83 kB / 330.2 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.53e-05/0.08607, allocations: 103.4 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.08633, allocations: 239.5 kB / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.08634, allocations: 0 / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.08635, allocations: 0 / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.08636, allocations: 0 / 330.5 MB, free: 1.184 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.0005772/0.08694, allocations: 494.1 kB / 331 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.08699, allocations: 12.03 kB / 331 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.08705, allocations: 62.72 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.08712, allocations: 24.66 kB / 331.1 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.08735, allocations: 236 kB / 331.3 MB, free: 280 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.08739, allocations: 24.94 kB / 331.4 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.08743, allocations: 24.38 kB / 331.4 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.08785, allocations: 274.5 kB / 331.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.08787, allocations: 7.938 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.0879, allocations: 7.984 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.08792, allocations: 8 kB / 331.7 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.08821, allocations: 165.5 kB / 331.8 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.08925, allocations: 0.9711 MB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.08952, allocations: 154.8 kB / 333 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.08964, allocations: 76.83 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.08967, allocations: 4 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.08991, allocations: 111.3 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.08992, allocations: 4 kB / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003971/0.09033, allocations: 213.4 kB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.09038, allocations: 55.41 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.0905, allocations: 159.1 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.09054, allocations: 37.64 kB / 333.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.095e-05/0.09064, allocations: 148.4 kB / 333.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.09069, allocations: 55.34 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-05/0.0908, allocations: 77.91 kB / 333.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.09092, allocations: 334.8 kB / 334.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.09104, allocations: 64.62 kB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.09122, allocations: 141.7 kB / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.09148, allocations: 192.3 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.09149, allocations: 0 / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003618/0.09186, allocations: 249.2 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.09188, allocations: 4 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.0919, allocations: 4 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.09192, allocations: 7.938 kB / 334.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.09206, allocations: 32.2 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.09208, allocations: 8 kB / 334.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.09219, allocations: 35.7 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.09222, allocations: 8 kB / 334.9 MB, free: 12.45 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.0001399/0.09237, allocations: 160.3 kB / 335.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.0924, allocations: 11.81 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003189/0.09273, allocations: 194.7 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.09274, allocations: 4 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09275, allocations: 4 kB / 335.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.09276, allocations: 3.984 kB / 335.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006471/0.09341, allocations: 0.5871 MB / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.09343, allocations: 0 / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.452e-05/0.09351, allocations: 19.92 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.09352, allocations: 0 / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.09354, allocations: 8 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.09355, allocations: 0 / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09355, allocations: 7.938 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.09384, allocations: 271.2 kB / 336.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.09389, allocations: 92.89 kB / 336.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.09392, allocations: 11.98 kB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.22e-05/0.09401, allocations: 8 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.09408, allocations: 19.97 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.0941, allocations: 8 kB / 336.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.333e-05/0.09416, allocations: 102.2 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09416, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.09446, 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,step.active,transition1.enableFire,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.0005853/0.09506, allocations: 0.8306 MB / 337.3 MB, free: 9.934 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.09544, allocations: 203.8 kB / 337.5 MB, free: 9.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.09545, allocations: 0 / 337.5 MB, free: 9.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.09558, allocations: 79.91 kB / 337.6 MB, free: 9.656 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.09587, allocations: 27.92 kB / 337.6 MB, free: 9.629 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.09804, allocations: 2.032 MB / 339.7 MB, free: 7.457 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.09842, allocations: 0.7401 MB / 340.4 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.768e-05/0.09851, allocations: 25.94 kB / 340.4 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.09862, allocations: 63.41 kB / 340.5 MB, free: 6.602 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.09863, allocations: 4 kB / 340.5 MB, free: 6.598 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.1211, allocations: 3.631 MB / 344.1 MB, free: 2.91 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/7.864, allocations: 23.73 kB / 344.1 MB, free: 2.887 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches