Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009996/0.0009996, allocations: 105.8 kB / 16.35 MB, free: 6.293 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.0009553/0.0009554, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.218/1.218, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 282 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.896/0.896, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 97.86 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.152, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003132/0.1552, allocations: 1.771 MB / 0.6833 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.1563, allocations: 0.6676 MB / 0.684 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.054e-05/0.1563, allocations: 0 / 0.684 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.043e-05/0.1564, allocations: 11.86 kB / 0.684 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.075e-05/0.1564, allocations: 19.81 kB / 0.684 GB, free: 4.961 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.157, allocations: 166.7 kB / 0.6842 GB, free: 4.801 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.1571, allocations: 123.7 kB / 0.6843 GB, free: 4.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.1573, allocations: 49.09 kB / 0.6843 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.1574, allocations: 63.77 kB / 0.6844 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.533e-05/0.1575, allocations: 47.77 kB / 0.6844 GB, free: 4.523 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.1575, allocations: 19.98 kB / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.1576, allocations: 43.97 kB / 0.6845 GB, free: 4.461 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.333e-05/0.1576, allocations: 27.91 kB / 0.6845 GB, free: 4.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.533e-05/0.1577, allocations: 63.64 kB / 0.6846 GB, free: 4.371 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001833/0.1579, allocations: 143.6 kB / 0.6847 GB, free: 4.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1579, allocations: 0 / 0.6847 GB, free: 4.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1579, allocations: 0 / 0.6847 GB, free: 4.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1579, allocations: 0 / 0.6847 GB, free: 4.23 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000583/0.1585, allocations: 427.1 kB / 0.6851 GB, free: 3.766 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1585, allocations: 15.97 kB / 0.6851 GB, free: 3.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007601/0.1593, allocations: 112.6 kB / 0.6852 GB, free: 3.641 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.1595, allocations: 193.5 kB / 0.6854 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.441e-05/0.1595, allocations: 59.97 kB / 0.6855 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.1596, allocations: 12.38 kB / 0.6855 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.16, allocations: 173.6 kB / 0.6857 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1601, allocations: 0 / 0.6857 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.1601, allocations: 4 kB / 0.6857 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1601, allocations: 0 / 0.6857 GB, free: 3.152 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.1606, allocations: 163.8 kB / 0.6858 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.1617, allocations: 489.7 kB / 0.6863 GB, free: 2.465 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009011/0.1626, allocations: 214.3 kB / 0.6865 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.1629, allocations: 84.89 kB / 0.6866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.1629, allocations: 0 / 0.6866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.1629, allocations: 42.56 kB / 0.6866 GB, free: 2.109 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.1629, allocations: 0 / 0.6866 GB, free: 2.109 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008847/0.1638, allocations: 265.4 kB / 0.6869 GB, free: 1.844 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.1639, allocations: 51.41 kB / 0.6869 GB, free: 1.781 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.164, allocations: 143.5 kB / 0.6871 GB, free: 1.633 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.164, allocations: 29.7 kB / 0.6871 GB, free: 1.598 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.1641, allocations: 108.2 kB / 0.6872 GB, free: 1.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.1641, allocations: 27.72 kB / 0.6872 GB, free: 1.457 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/0.1641, allocations: 17.72 kB / 0.6872 GB, free: 1.434 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.1643, allocations: 322.8 kB / 0.6875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.1645, allocations: 67.92 kB / 0.6876 GB, free: 1.043 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.1648, allocations: 98.48 kB / 0.6877 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004972/0.1653, allocations: 166.4 kB / 0.6879 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1653, allocations: 0 / 0.6879 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005766/0.1659, allocations: 205.8 kB / 0.6881 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1659, allocations: 4 kB / 0.6881 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.1659, allocations: 11.94 kB / 0.6881 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1659, allocations: 3.938 kB / 0.6881 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.1662, allocations: 31.95 kB / 0.6881 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.1662, allocations: 7.984 kB / 0.6881 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.1664, allocations: 23.88 kB / 0.6881 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.1664, allocations: 8 kB / 0.6881 GB, free: 480 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 8.873e-05/0.1665, allocations: 125.7 kB / 0.6883 GB, free: 344 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.1665, allocations: 7.906 kB / 0.6883 GB, free: 336 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006263/0.1672, allocations: 210.1 kB / 0.6885 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1672, allocations: 0 / 0.6885 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1672, allocations: 0 / 0.6885 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1672, allocations: 4 kB / 0.6885 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2545/0.4217, allocations: 220.3 kB / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4218, allocations: 0 / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.422, allocations: 34.22 kB / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.422, allocations: 1.188 kB / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.422, allocations: 8.953 kB / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4221, allocations: 0 / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4221, allocations: 1.578 kB / 0.6887 GB, free: 18.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006252/0.4227, allocations: 284.5 kB / 0.689 GB, free: 18.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.452e-05/0.4227, allocations: 88.09 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.4228, allocations: 5 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.423, allocations: 31.41 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.4231, allocations: 6.266 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.4231, allocations: 10.81 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.66e-05/0.4232, allocations: 105.4 kB / 0.6892 GB, free: 18.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4232, allocations: 0 / 0.6892 GB, free: 18.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.4235, allocations: 24.89 kB / 0.6893 GB, free: 18.4 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 (6): * Single equations (assignments): 6 * 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 9.924e-05/0.4236, allocations: 98.06 kB / 0.6893 GB, free: 18.31 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005883/0.4242, allocations: 171 kB / 0.6895 GB, free: 18.31 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4242, allocations: 2.344 kB / 0.6895 GB, free: 18.31 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.4244, allocations: 80.28 kB / 0.6896 GB, free: 18.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.4248, allocations: 9.422 kB / 0.6896 GB, free: 18.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005619/0.4253, allocations: 255.6 kB / 0.6898 GB, free: 18.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.4254, allocations: 0.7048 MB / 0.6905 GB, free: 17.45 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.22e-05/0.4255, allocations: 14.84 kB / 0.6905 GB, free: 17.45 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.4256, allocations: 19.3 kB / 0.6906 GB, free: 17.44 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4256, allocations: 0 / 0.6906 GB, free: 17.44 MB / 494.1 MB Notification: Performance of Templates: time 0.003827/0.4294, allocations: 1.471 MB / 0.692 GB, free: 17.4 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)