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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001993/0.001993, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.314/2.314, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 48.23 kB / 300.6 MB, free: 6.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1693, allocations: 49.44 MB / 350 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.005087/0.1745, allocations: 1.571 MB / 351.6 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1758, allocations: 303.1 kB / 351.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.176, allocations: 4 kB / 351.9 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.1762, allocations: 19.81 kB / 351.9 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.791e-05/0.1764, allocations: 3.938 kB / 351.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008529/0.1772, allocations: 103.9 kB / 352 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.1777, allocations: 243.5 kB / 352.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/0.1782, allocations: 146.5 kB / 352.4 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1784, allocations: 83.75 kB / 352.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.1787, allocations: 95.53 kB / 352.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.416e-05/0.1788, allocations: 16 kB / 352.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.179, allocations: 23.94 kB / 352.6 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1791, allocations: 51.83 kB / 352.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1793, allocations: 87.52 kB / 352.8 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.1796, allocations: 151.7 kB / 352.9 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1796, allocations: 0 / 352.9 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1796, allocations: 0 / 352.9 MB, free: 1.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.1797, allocations: 0 / 352.9 MB, free: 1.902 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.001353/0.181, allocations: 490.7 kB / 353.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.739e-05/0.1811, allocations: 12.03 kB / 353.4 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.1812, allocations: 20.75 kB / 353.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1816, allocations: 224.1 kB / 353.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/0.1817, allocations: 24.94 kB / 353.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.611e-05/0.1818, allocations: 28.31 kB / 353.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.1825, allocations: 240 kB / 353.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.1826, allocations: 192 / 353.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.1826, allocations: 23.88 kB / 353.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1827, allocations: 4 kB / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.1831, allocations: 157.7 kB / 354.1 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.1847, allocations: 0.7012 MB / 354.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005054/0.1852, allocations: 172.5 kB / 355 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.1854, allocations: 80.83 kB / 355.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1855, allocations: 4 kB / 355.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003855/0.1859, allocations: 119.3 kB / 355.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.637e-06/0.1859, allocations: 0 / 355.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006637/0.1866, allocations: 218.7 kB / 355.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/0.1867, allocations: 67.19 kB / 355.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.1869, allocations: 147.8 kB / 355.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.1869, allocations: 37.7 kB / 355.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.1871, allocations: 132.6 kB / 355.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.935e-05/0.1872, allocations: 63.19 kB / 355.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.1874, allocations: 74.02 kB / 355.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.1876, allocations: 326.8 kB / 356.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1878, allocations: 64.62 kB / 356.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.188, allocations: 128.1 kB / 356.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.1884, allocations: 179.2 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1884, allocations: 4 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005397/0.189, allocations: 245.2 kB / 356.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.189, allocations: 8 kB / 356.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.189, allocations: 0 / 356.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.1891, allocations: 4 kB / 356.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.1893, allocations: 27.92 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.1893, allocations: 7.984 kB / 356.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.1895, allocations: 28 kB / 356.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.1895, allocations: 12 kB / 356.9 MB, free: 13.62 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.0002235/0.1898, allocations: 161.7 kB / 357.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.612e-05/0.1898, allocations: 15.75 kB / 357.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004861/0.1903, allocations: 194.3 kB / 357.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1903, allocations: 7.984 kB / 357.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1904, allocations: 0 / 357.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1904, allocations: 7.922 kB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.1914, allocations: 0.5644 MB / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1914, allocations: 0 / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.1916, allocations: 12 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1916, allocations: 4 kB / 357.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.1916, allocations: 7.984 kB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1916, allocations: 0 / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1916, allocations: 3.938 kB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/0.1921, allocations: 291.6 kB / 358.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.1922, allocations: 88.95 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.1922, allocations: 4 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.1923, allocations: 7.984 kB / 358.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.1925, allocations: 27.91 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.1925, allocations: 8 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1926, allocations: 102.6 kB / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1926, allocations: 0 / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004715/0.1931, allocations: 51.84 kB / 358.5 MB, free: 11.97 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.0002594/0.1934, allocations: 107.2 kB / 358.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.1939, allocations: 179.7 kB / 358.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1939, allocations: 0 / 358.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.1941, allocations: 87.91 kB / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.1946, allocations: 22.77 kB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009802/0.1955, allocations: 415.2 kB / 359.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004941/0.1961, allocations: 0.7365 MB / 360 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.714e-05/0.1962, allocations: 23.42 kB / 360 MB, free: 10.35 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1962, allocations: 0 / 360 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Templates: time 0.007216/0.2034, allocations: 2.343 MB / 362.3 MB, free: 8.008 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (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 & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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