Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.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.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008574, allocations: 86.36 kB / 15.06 MB, free: 1.082 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.0009439/0.0009439, allocations: 176.7 kB / 15.96 MB, free: 196 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001666/0.001666, allocations: 267 kB / 291.3 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9075/0.9075, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.0004082, allocations: 20.28 kB / 0.598 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1671, allocations: 88.55 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.001932/0.1691, allocations: 1.503 MB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007904/0.1699, allocations: 0.5018 MB / 0.6864 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.83e-05/0.17, allocations: 7.938 kB / 0.6864 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.1701, allocations: 15.86 kB / 0.6865 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.233e-05/0.1702, allocations: 26.8 kB / 0.6865 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.1704, allocations: 51.94 kB / 0.6865 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.1706, allocations: 155.5 kB / 0.6867 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.1708, allocations: 31.19 kB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.436e-05/0.1709, allocations: 39.8 kB / 0.6867 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.808e-05/0.1709, allocations: 51.69 kB / 0.6868 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.171, allocations: 4.625 kB / 0.6868 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.594e-05/0.171, allocations: 4 kB / 0.6868 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.787e-05/0.171, allocations: 24.52 kB / 0.6868 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.896e-05/0.1711, allocations: 45.64 kB / 0.6869 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.1712, allocations: 90.33 kB / 0.687 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1712, allocations: 0 / 0.687 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1712, allocations: 4 kB / 0.687 GB, free: 12.92 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1712, allocations: 0 / 0.687 GB, free: 12.92 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006396/0.1719, allocations: 451.3 kB / 0.6874 GB, free: 12.44 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1719, allocations: 8.031 kB / 0.6874 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.172, allocations: 27.67 kB / 0.6874 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.1723, allocations: 226.7 kB / 0.6876 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1723, allocations: 4 kB / 0.6876 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.1723, allocations: 15.98 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.1726, allocations: 155.4 kB / 0.6878 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1726, allocations: 0 / 0.6878 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.1726, allocations: 11.98 kB / 0.6878 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1726, allocations: 4.609 kB / 0.6878 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.1729, allocations: 84.39 kB / 0.6879 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000873/0.1737, allocations: 0.7392 MB / 0.6886 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.1739, allocations: 50.55 kB / 0.6887 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.174, allocations: 40.83 kB / 0.6887 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.174, allocations: 7.938 kB / 0.6887 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.1743, allocations: 130.9 kB / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.1743, allocations: 0 / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004452/0.1748, allocations: 181.5 kB / 0.689 GB, free: 10.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.1748, allocations: 128.5 kB / 0.6891 GB, free: 10.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.175, allocations: 206.8 kB / 0.6893 GB, free: 10.24 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1751, allocations: 33.69 kB / 0.6894 GB, free: 10.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.259e-05/0.1751, allocations: 128 kB / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.364e-05/0.1752, allocations: 43.53 kB / 0.6895 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.1752, allocations: 4 kB / 0.6895 GB, free: 10.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1753, allocations: 326.8 kB / 0.6898 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1754, allocations: 44.34 kB / 0.6899 GB, free: 9.656 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.1756, allocations: 151.4 kB / 0.69 GB, free: 9.461 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.1757, allocations: 67.92 kB / 0.6901 GB, free: 9.395 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1758, allocations: 0 / 0.6901 GB, free: 9.395 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003497/0.1761, allocations: 209.1 kB / 0.6903 GB, free: 9.184 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1761, allocations: 9.875 kB / 0.6903 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1762, allocations: 8.453 kB / 0.6903 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1762, allocations: 8 kB / 0.6903 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.1763, allocations: 39.92 kB / 0.6904 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1763, allocations: 7.938 kB / 0.6904 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1764, allocations: 27.83 kB / 0.6904 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.1765, allocations: 19.98 kB / 0.6904 GB, free: 9.066 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.1766, allocations: 130.4 kB / 0.6905 GB, free: 8.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.1766, allocations: 19.81 kB / 0.6906 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.598e-05/0.1767, allocations: 25.39 kB / 0.6906 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1767, allocations: 3.953 kB / 0.6906 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.1767, allocations: 4 kB / 0.6906 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1767, allocations: 0 / 0.6906 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006919/0.1774, allocations: 0.5174 MB / 0.6911 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.1774, allocations: 4 kB / 0.6911 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.1775, allocations: 31.81 kB / 0.6911 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.1775, allocations: 4.047 kB / 0.6911 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.1776, allocations: 4.297 kB / 0.6911 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1776, allocations: 8 kB / 0.6911 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.1776, allocations: 4 kB / 0.6911 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/0.178, allocations: 376.1 kB / 0.6915 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.1781, allocations: 88.97 kB / 0.6916 GB, free: 7.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.1781, allocations: 11.94 kB / 0.6916 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.1783, allocations: 19.98 kB / 0.6916 GB, free: 7.719 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.1783, allocations: 15.98 kB / 0.6916 GB, free: 7.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.1784, allocations: 4 kB / 0.6916 GB, free: 7.699 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.954e-05/0.1785, allocations: 140.4 kB / 0.6918 GB, free: 7.562 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1785, allocations: 0 / 0.6918 GB, free: 7.562 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.1788, allocations: 31.94 kB / 0.6918 GB, free: 7.531 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001227/0.1789, allocations: 104.6 kB / 0.6919 GB, free: 7.422 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002899/0.1792, allocations: 132.6 kB / 0.692 GB, free: 7.293 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1792, allocations: 0 / 0.692 GB, free: 7.293 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.1794, allocations: 56.03 kB / 0.6921 GB, free: 7.238 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.1799, allocations: 59.78 kB / 0.6921 GB, free: 7.184 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.1804, allocations: 390.8 kB / 0.6925 GB, free: 6.766 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.1807, allocations: 0.7206 MB / 0.6932 GB, free: 6.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.875e-05/0.1808, allocations: 21.66 kB / 0.6932 GB, free: 6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.94e-05/0.1808, allocations: 23.44 kB / 0.6933 GB, free: 5.977 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1808, allocations: 0 / 0.6933 GB, free: 5.977 MB / 494.1 MB Notification: Performance of Templates: time 0.004278/0.1851, allocations: 1.736 MB / 0.695 GB, free: 4.258 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)