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.0008323/0.0008326, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.005762/0.005763, allocations: 171.5 kB / 16.26 MB, free: 6.676 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.31/1.31, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001712/0.001712, allocations: 271.1 kB / 291.7 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9381/0.9381, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004071/0.0004072, allocations: 22.69 kB / 0.5987 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1552, allocations: 88.54 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00178/0.1571, allocations: 1.541 MB / 0.6866 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000782/0.1579, allocations: 0.5226 MB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.916e-05/0.1579, allocations: 3.938 kB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.909e-05/0.1581, allocations: 19.8 kB / 0.6872 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.384e-05/0.1581, allocations: 19.78 kB / 0.6872 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.1583, allocations: 63.94 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.1585, allocations: 155.5 kB / 0.6874 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1586, allocations: 52.75 kB / 0.6874 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.226e-05/0.1587, allocations: 47.73 kB / 0.6875 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.765e-05/0.1588, allocations: 53.05 kB / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.1588, allocations: 4 kB / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.526e-05/0.1588, allocations: 4 kB / 0.6875 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.1589, allocations: 19.86 kB / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.782e-05/0.159, allocations: 86.48 kB / 0.6876 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.1591, allocations: 115.5 kB / 0.6878 GB, free: 12.35 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1591, allocations: 0 / 0.6878 GB, free: 12.35 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1591, allocations: 0.5625 kB / 0.6878 GB, free: 12.35 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.1591, allocations: 0 / 0.6878 GB, free: 12.35 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.0006014/0.1597, allocations: 458 kB / 0.6882 GB, free: 11.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.1598, allocations: 8.031 kB / 0.6882 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.1598, allocations: 25.23 kB / 0.6882 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.1601, allocations: 224.7 kB / 0.6884 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.1601, allocations: 12.31 kB / 0.6885 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.1601, allocations: 13.03 kB / 0.6885 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.1604, allocations: 162.7 kB / 0.6886 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1604, allocations: 0 / 0.6886 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.1605, allocations: 8 kB / 0.6886 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1605, allocations: 0 / 0.6886 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.1607, allocations: 84.41 kB / 0.6887 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008611/0.1616, allocations: 0.7431 MB / 0.6894 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.1617, allocations: 54.55 kB / 0.6895 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1619, allocations: 40.78 kB / 0.6895 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.1619, allocations: 3.984 kB / 0.6895 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.1622, allocations: 134.8 kB / 0.6897 GB, free: 10.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.1622, allocations: 0 / 0.6897 GB, free: 10.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004754/0.1627, allocations: 185.5 kB / 0.6898 GB, free: 10.03 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.1627, allocations: 128.5 kB / 0.69 GB, free: 9.871 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1629, allocations: 202.9 kB / 0.6901 GB, free: 9.664 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.1629, allocations: 29.77 kB / 0.6902 GB, free: 9.629 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.163, allocations: 131.8 kB / 0.6903 GB, free: 9.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.104e-05/0.163, allocations: 31.56 kB / 0.6903 GB, free: 9.465 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.1631, allocations: 29.7 kB / 0.6904 GB, free: 9.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.862e-05/0.1632, allocations: 326.8 kB / 0.6907 GB, free: 9.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.1633, allocations: 47.97 kB / 0.6907 GB, free: 9.055 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1635, allocations: 150.8 kB / 0.6909 GB, free: 8.859 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.1639, allocations: 222.3 kB / 0.6911 GB, free: 8.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1639, allocations: 0 / 0.6911 GB, free: 8.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004104/0.1643, allocations: 213.1 kB / 0.6913 GB, free: 8.375 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1643, allocations: 4.5 kB / 0.6913 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1643, allocations: 11.94 kB / 0.6913 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.1644, allocations: 8.25 kB / 0.6913 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.1645, allocations: 35.91 kB / 0.6913 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.1645, allocations: 11.94 kB / 0.6913 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.1647, allocations: 39.73 kB / 0.6914 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.1647, allocations: 8 kB / 0.6914 GB, free: 8.258 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.1648, allocations: 139 kB / 0.6915 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.1649, allocations: 19.81 kB / 0.6915 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.1649, allocations: 25.39 kB / 0.6916 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.1649, allocations: 0 / 0.6916 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.1649, allocations: 4 kB / 0.6916 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1649, allocations: 0 / 0.6916 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007625/0.1657, allocations: 0.525 MB / 0.6921 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1657, allocations: 0 / 0.6921 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.1658, allocations: 15.98 kB / 0.6921 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1659, allocations: 8 kB / 0.6921 GB, free: 7.457 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.1659, allocations: 3.938 kB / 0.6921 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.1659, allocations: 7.984 kB / 0.6921 GB, free: 7.445 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1659, allocations: 3.938 kB / 0.6921 GB, free: 7.441 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.1664, allocations: 378.4 kB / 0.6925 GB, free: 7.051 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1665, allocations: 89.3 kB / 0.6926 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.1665, allocations: 4 kB / 0.6926 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.1667, allocations: 31.91 kB / 0.6926 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.1668, allocations: 11.92 kB / 0.6926 GB, free: 6.898 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.1668, allocations: 11.97 kB / 0.6926 GB, free: 6.887 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001579/0.1669, allocations: 144.6 kB / 0.6928 GB, free: 6.746 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1669, allocations: 0 / 0.6928 GB, free: 6.746 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003316/0.1673, allocations: 27.94 kB / 0.6928 GB, free: 6.719 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 (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.0001207/0.1674, allocations: 104.1 kB / 0.6929 GB, free: 6.609 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003568/0.1678, allocations: 124.7 kB / 0.693 GB, free: 6.488 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1678, allocations: 4.062 kB / 0.693 GB, free: 6.484 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.1679, allocations: 51.91 kB / 0.6931 GB, free: 6.434 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.1685, allocations: 66 kB / 0.6931 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005787/0.1691, allocations: 410.8 kB / 0.6935 GB, free: 5.934 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.1694, allocations: 0.7244 MB / 0.6942 GB, free: 5.184 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.707e-05/0.1695, allocations: 17.55 kB / 0.6942 GB, free: 5.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.1695, allocations: 19.44 kB / 0.6943 GB, free: 5.148 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1695, allocations: 0 / 0.6943 GB, free: 5.148 MB / 494.1 MB Notification: Performance of Templates: time 0.004541/0.1741, allocations: 1.813 MB / 0.696 GB, free: 3.359 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)