Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_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.001532/0.001532, allocations: 103.7 kB / 16.51 MB, free: 6.641 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.001411/0.001411, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.583/1.583, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 39.19 kB / 300 MB, free: 6.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1541, allocations: 49.45 MB / 349.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004725/0.1589, allocations: 1.748 MB / 351.3 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009967/0.1599, allocations: 295.1 kB / 351.5 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1601, allocations: 11.94 kB / 351.6 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.1603, allocations: 19.86 kB / 351.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.57e-05/0.1604, allocations: 7.922 kB / 351.6 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.161, allocations: 107.8 kB / 351.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.1614, allocations: 259.5 kB / 351.9 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003706/0.1618, allocations: 163.2 kB / 352.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1619, allocations: 87.7 kB / 352.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.1621, allocations: 95.53 kB / 352.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.1622, allocations: 23.94 kB / 352.3 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.745e-05/0.1623, allocations: 27.98 kB / 352.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.891e-05/0.1624, allocations: 47.83 kB / 352.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.1626, allocations: 91.53 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.1629, allocations: 231.5 kB / 352.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1629, allocations: 3.938 kB / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1629, allocations: 0 / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1629, allocations: 0 / 352.7 MB, free: 1.48 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008842/0.1638, allocations: 490.6 kB / 353.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.1639, allocations: 16.03 kB / 353.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.338e-05/0.164, allocations: 58.72 kB / 353.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.168e-05/0.1641, allocations: 28.66 kB / 353.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1644, allocations: 228 kB / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.1645, allocations: 20.94 kB / 353.5 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.1645, allocations: 24.38 kB / 353.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/0.1652, allocations: 282.5 kB / 353.8 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1652, allocations: 3.938 kB / 353.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.1652, allocations: 12 kB / 353.8 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1653, allocations: 4 kB / 353.8 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.1657, allocations: 165.6 kB / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.1673, allocations: 0.9787 MB / 355 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.1677, allocations: 181.3 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1679, allocations: 89.62 kB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.168, allocations: 0 / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.1684, allocations: 137.1 kB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.454e-06/0.1684, allocations: 0 / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006571/0.1691, allocations: 228.6 kB / 355.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.443e-05/0.1692, allocations: 85.11 kB / 355.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1694, allocations: 156.9 kB / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.1694, allocations: 41.69 kB / 355.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1696, allocations: 140.7 kB / 356 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.1697, allocations: 59.2 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.1699, allocations: 85.58 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1701, allocations: 330.8 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.1702, allocations: 67.91 kB / 356.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002604/0.1705, allocations: 148.5 kB / 356.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.1709, allocations: 189 kB / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1709, allocations: 0 / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005437/0.1715, allocations: 249.2 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.1715, allocations: 8.281 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1715, allocations: 4 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.1716, allocations: 11.97 kB / 357.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.1718, allocations: 35.86 kB / 357.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.602e-05/0.1718, allocations: 4 kB / 357.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.172, allocations: 27.78 kB / 357.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.503e-05/0.1721, allocations: 12 kB / 357.2 MB, free: 12.61 MB / 302.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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.000226/0.1723, allocations: 157.7 kB / 357.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.172e-05/0.1723, allocations: 15.81 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004907/0.1728, allocations: 202.3 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.1729, allocations: 4 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1729, allocations: 0 / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.1729, allocations: 0 / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.174, allocations: 0.5947 MB / 358.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.174, allocations: 0 / 358.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.442e-05/0.1741, allocations: 15.98 kB / 358.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/0.1741, allocations: 7.938 kB / 358.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.1742, allocations: 11.94 kB / 358.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.1742, allocations: 3.938 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1742, allocations: 0 / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.1747, allocations: 284.5 kB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.1748, allocations: 100.9 kB / 358.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.1748, allocations: 4 kB / 358.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.175, allocations: 12 kB / 358.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1751, allocations: 19.97 kB / 358.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.1751, allocations: 8 kB / 358.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.348e-05/0.1752, allocations: 95.27 kB / 358.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1752, allocations: 0 / 358.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.1757, allocations: 59.73 kB / 358.8 MB, free: 10.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001011/0.1767, allocations: 0.834 MB / 359.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005287/0.1773, allocations: 187.7 kB / 359.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1773, allocations: 0 / 359.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.1775, allocations: 80.92 kB / 359.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.178, allocations: 31.98 kB / 359.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/0.1813, allocations: 2.154 MB / 362.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.1818, allocations: 0.7365 MB / 362.8 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1819, allocations: 21.94 kB / 362.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.1821, allocations: 63.41 kB / 362.9 MB, free: 6.621 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1821, allocations: 4 kB / 362.9 MB, free: 6.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.2022, allocations: 3.432 MB / 366.3 MB, free: 3.281 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.2024, allocations: 198.8 kB / 366.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.238, allocations: 4.062 kB / 366.5 MB, free: 3.023 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches