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.001277/0.001277, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.00123/0.00123, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.536/1.536, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 42.98 kB / 300.2 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1639, allocations: 49.45 MB / 349.7 MB, free: 4.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004585/0.1685, allocations: 1.556 MB / 351.2 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.1696, allocations: 295.1 kB / 351.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1698, allocations: 11.94 kB / 351.5 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.17, allocations: 19.81 kB / 351.6 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.404e-05/0.1702, allocations: 7.922 kB / 351.6 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.1708, allocations: 99.89 kB / 351.7 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003827/0.1712, allocations: 255.5 kB / 351.9 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.1717, allocations: 174.3 kB / 352.1 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.1718, allocations: 83.77 kB / 352.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.172, allocations: 99.47 kB / 352.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.172, allocations: 24 kB / 352.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1722, allocations: 24 kB / 352.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-05/0.1722, allocations: 55.89 kB / 352.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.1724, allocations: 95.52 kB / 352.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003425/0.1727, allocations: 235.2 kB / 352.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.1727, allocations: 0 / 352.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1728, allocations: 3.938 kB / 352.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.1728, allocations: 0 / 352.7 MB, free: 1.434 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.000824/0.1736, allocations: 486.8 kB / 353.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.1737, allocations: 8.031 kB / 353.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.847e-05/0.1738, allocations: 58.72 kB / 353.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.793e-05/0.1739, allocations: 20.75 kB / 353.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.1743, allocations: 228 kB / 353.5 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.1743, allocations: 24.94 kB / 353.5 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.1744, allocations: 28.36 kB / 353.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005564/0.1749, allocations: 240 kB / 353.8 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.175, allocations: 11.92 kB / 353.8 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.175, allocations: 8 kB / 353.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.175, allocations: 4 kB / 353.8 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.1755, allocations: 157.6 kB / 353.9 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.1769, allocations: 0.7013 MB / 354.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.1772, allocations: 174 kB / 354.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.1773, allocations: 84.11 kB / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.1774, allocations: 11.92 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.1777, allocations: 115.3 kB / 355 MB, free: 14.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.033e-06/0.1777, allocations: 0 / 355 MB, free: 14.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004573/0.1781, allocations: 222.9 kB / 355.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1782, allocations: 59.41 kB / 355.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1783, allocations: 145.9 kB / 355.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.1784, allocations: 37.7 kB / 355.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.1785, allocations: 124.6 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.1786, allocations: 63.2 kB / 355.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1787, allocations: 74 kB / 355.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1789, allocations: 326.8 kB / 356 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.179, allocations: 64.62 kB / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.1792, allocations: 124.1 kB / 356.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.1794, allocations: 183.1 kB / 356.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.1794, allocations: 4 kB / 356.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004015/0.1798, allocations: 245.4 kB / 356.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1799, allocations: 8.031 kB / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1799, allocations: 4 kB / 356.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1799, allocations: 4 kB / 356.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.1801, allocations: 31.92 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.1801, allocations: 4 kB / 356.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.1802, allocations: 35.62 kB / 356.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.177e-05/0.1803, allocations: 15.98 kB / 356.7 MB, free: 13.08 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.0001765/0.1805, allocations: 149.7 kB / 356.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.1805, allocations: 15.91 kB / 356.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003624/0.1809, allocations: 202.3 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1809, allocations: 3.984 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1809, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1809, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007497/0.1817, allocations: 0.5683 MB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1817, allocations: 0 / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.383e-05/0.1818, allocations: 27.92 kB / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1818, allocations: 0 / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.1818, allocations: 8 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1818, allocations: 0 / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1818, allocations: 3.938 kB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.1822, allocations: 275.6 kB / 358 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.1823, allocations: 92.95 kB / 358.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.1823, allocations: 7.984 kB / 358.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.862e-05/0.1824, allocations: 12 kB / 358.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.1825, allocations: 27.91 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.1825, allocations: 4 kB / 358.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.783e-05/0.1826, allocations: 94.52 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1826, allocations: 0 / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1829, allocations: 51.84 kB / 358.3 MB, free: 11.45 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0006545/0.1835, allocations: 0.8215 MB / 359.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003774/0.1839, allocations: 191.7 kB / 359.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1839, allocations: 4 kB / 359.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.1841, allocations: 84.34 kB / 359.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.1844, allocations: 30.73 kB / 359.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.1869, allocations: 2.069 MB / 361.5 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.1873, allocations: 0.7285 MB / 362.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.775e-05/0.1873, allocations: 29.88 kB / 362.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.1875, allocations: 59.42 kB / 362.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1875, allocations: 4.125 kB / 362.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.2047, allocations: 3.466 MB / 365.7 MB, free: 3.891 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002905/0.2051, allocations: 199.2 kB / 365.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.21, allocations: 0 / 365.9 MB, free: 3.629 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 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.mat","/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