Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 108.3 kB / 16.37 MB, free: 6.477 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.001097/0.001097, allocations: 194.7 kB / 17.31 MB, free: 5.824 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00204/0.00204, allocations: 284.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9028/0.9028, allocations: 169.3 MB / 0.4989 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002551/0.002551, allocations: 90.61 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1833, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.00175/0.1851, allocations: 0.5681 MB / 0.6822 GB, free: 6.883 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002386/0.1854, allocations: 59.91 kB / 0.6822 GB, free: 6.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.554e-05/0.1854, allocations: 3.938 kB / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.1854, allocations: 0 / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1854, allocations: 4 kB / 0.6822 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.1856, allocations: 15.92 kB / 0.6823 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.691e-05/0.1857, allocations: 0 / 0.6823 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.919e-05/0.1857, allocations: 4 kB / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.183e-05/0.1858, allocations: 0 / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.937e-05/0.1858, allocations: 0 / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.027e-06/0.1858, allocations: 0 / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.1859, allocations: 27.95 kB / 0.6823 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.1859, allocations: 0 / 0.6823 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.408e-05/0.1859, allocations: 0 / 0.6823 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.759e-05/0.186, allocations: 23.92 kB / 0.6823 GB, free: 6.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.186, allocations: 0 / 0.6823 GB, free: 6.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.186, allocations: 0 / 0.6823 GB, free: 6.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.186, allocations: 0 / 0.6823 GB, free: 6.746 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002568/0.1863, allocations: 319.6 kB / 0.6826 GB, free: 6.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.1863, allocations: 8.031 kB / 0.6826 GB, free: 6.375 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.1866, allocations: 16.91 kB / 0.6826 GB, free: 6.359 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.52e-05/0.1867, allocations: 164.4 kB / 0.6828 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.1867, allocations: 4.375 kB / 0.6828 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-06/0.1867, allocations: 4.312 kB / 0.6828 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.1868, allocations: 34.25 kB / 0.6828 GB, free: 6.113 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.1868, allocations: 192 / 0.6828 GB, free: 6.113 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1868, allocations: 3.938 kB / 0.6828 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1868, allocations: 0 / 0.6828 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.682e-05/0.1869, allocations: 11.98 kB / 0.6829 GB, free: 6.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.1871, allocations: 153.7 kB / 0.683 GB, free: 5.898 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.751e-05/0.1871, allocations: 18.61 kB / 0.683 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.1872, allocations: 16.84 kB / 0.683 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1872, allocations: 0 / 0.683 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.1872, allocations: 30.56 kB / 0.6831 GB, free: 5.812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1872, allocations: 0 / 0.6831 GB, free: 5.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000213/0.1875, allocations: 53.61 kB / 0.6831 GB, free: 5.754 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.1875, allocations: 55.41 kB / 0.6832 GB, free: 5.688 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.949e-05/0.1875, allocations: 89.86 kB / 0.6833 GB, free: 5.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1876, allocations: 25.7 kB / 0.6833 GB, free: 5.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.1876, allocations: 80.14 kB / 0.6834 GB, free: 5.477 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.1876, allocations: 0 / 0.6834 GB, free: 5.477 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.1877, allocations: 13.72 kB / 0.6834 GB, free: 5.457 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.1878, allocations: 315 kB / 0.6837 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.545e-05/0.1878, allocations: 11.92 kB / 0.6837 GB, free: 5.129 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.476e-05/0.1879, allocations: 7.938 kB / 0.6837 GB, free: 5.121 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.793e-05/0.1879, allocations: 16.84 kB / 0.6837 GB, free: 5.102 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.188, allocations: 0 / 0.6837 GB, free: 5.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001127/0.1881, allocations: 45.75 kB / 0.6837 GB, free: 5.051 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.1881, allocations: 4 kB / 0.6837 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1881, allocations: 7.922 kB / 0.6838 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.1881, allocations: 3.938 kB / 0.6838 GB, free: 5.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.406e-05/0.1882, allocations: 4 kB / 0.6838 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1882, allocations: 0 / 0.6838 GB, free: 5.031 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.277e-05/0.1882, allocations: 3.938 kB / 0.6838 GB, free: 5.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.1882, allocations: 4 kB / 0.6838 GB, free: 5.023 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.955e-05/0.1883, allocations: 113.8 kB / 0.6839 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-06/0.1883, allocations: 4.031 kB / 0.6839 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.1884, allocations: 7.062 kB / 0.6839 GB, free: 4.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1884, allocations: 0 / 0.6839 GB, free: 4.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1884, allocations: 0 / 0.6839 GB, free: 4.891 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1884, allocations: 7.984 kB / 0.6839 GB, free: 4.883 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.75e-05/0.1885, allocations: 145.7 kB / 0.684 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1885, allocations: 3.984 kB / 0.684 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.127e-05/0.1885, allocations: 4 kB / 0.684 GB, free: 4.684 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1885, allocations: 0 / 0.684 GB, free: 4.684 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.1885, allocations: 11.94 kB / 0.6841 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1885, allocations: 0 / 0.6841 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1885, allocations: 0 / 0.6841 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.1887, allocations: 65.11 kB / 0.6841 GB, free: 4.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.1887, allocations: 81.11 kB / 0.6842 GB, free: 4.492 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.1887, allocations: 3.938 kB / 0.6842 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.879e-05/0.1888, allocations: 0 / 0.6842 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.1888, allocations: 11.97 kB / 0.6842 GB, free: 4.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.1888, allocations: 0 / 0.6842 GB, free: 4.477 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.225e-05/0.1888, allocations: 75.28 kB / 0.6843 GB, free: 4.402 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1888, allocations: 0 / 0.6843 GB, free: 4.402 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001705/0.189, allocations: 0 / 0.6843 GB, free: 4.402 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0001011/0.1891, allocations: 103.2 kB / 0.6844 GB, free: 4.289 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.1892, allocations: 15.98 kB / 0.6844 GB, free: 4.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1893, allocations: 0 / 0.6844 GB, free: 4.273 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.929e-05/0.1893, allocations: 4 kB / 0.6844 GB, free: 4.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1894, allocations: 2.344 kB / 0.6844 GB, free: 4.27 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002308/0.1897, allocations: 87.97 kB / 0.6845 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.1899, allocations: 0.6729 MB / 0.6851 GB, free: 3.461 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.174e-05/0.1899, allocations: 8.125 kB / 0.6851 GB, free: 3.453 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.127e-05/0.19, allocations: 19.25 kB / 0.6852 GB, free: 3.434 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.19, allocations: 0 / 0.6852 GB, free: 3.434 MB / 494.1 MB Notification: Performance of Templates: time 0.001892/0.1919, allocations: 227.7 kB / 0.6854 GB, free: 3.215 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)