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.00119/0.00119, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001451/0.001451, allocations: 193.4 kB / 17.31 MB, free: 5.613 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.269/1.269, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002004/0.002003, allocations: 287.9 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.8907/0.8907, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 100.5 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1551, allocations: 86.97 MB / 0.6816 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002871/0.158, allocations: 1.835 MB / 0.6834 GB, free: 5.633 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008415/0.1589, allocations: 0.5423 MB / 0.6839 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.159, allocations: 7.938 kB / 0.6839 GB, free: 5.078 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1591, allocations: 23.72 kB / 0.684 GB, free: 5.055 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.313e-05/0.1592, allocations: 27.73 kB / 0.684 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.1594, allocations: 63.86 kB / 0.684 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.1596, allocations: 171.5 kB / 0.6842 GB, free: 4.797 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1597, allocations: 57.58 kB / 0.6843 GB, free: 4.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.085e-05/0.1598, allocations: 55.72 kB / 0.6843 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.65e-05/0.1599, allocations: 51.7 kB / 0.6844 GB, free: 4.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.1599, allocations: 15.98 kB / 0.6844 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.778e-05/0.1599, allocations: 8 kB / 0.6844 GB, free: 4.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.325e-05/0.16, allocations: 27.86 kB / 0.6844 GB, free: 4.586 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.722e-05/0.16, allocations: 67.59 kB / 0.6845 GB, free: 4.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.1602, allocations: 139.4 kB / 0.6846 GB, free: 4.383 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1602, allocations: 0 / 0.6846 GB, free: 4.383 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1602, allocations: 0 / 0.6846 GB, free: 4.383 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1602, allocations: 0 / 0.6846 GB, free: 4.383 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.0006346/0.1608, allocations: 478.6 kB / 0.6851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.1609, allocations: 8.031 kB / 0.6851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.083e-05/0.1609, allocations: 20.75 kB / 0.6851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.1612, allocations: 235.8 kB / 0.6853 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.1612, allocations: 12.38 kB / 0.6853 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.1613, allocations: 16.36 kB / 0.6853 GB, free: 3.543 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1615, allocations: 155.4 kB / 0.6855 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1616, allocations: 3.938 kB / 0.6855 GB, free: 3.367 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1616, allocations: 4 kB / 0.6855 GB, free: 3.363 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1616, allocations: 4 kB / 0.6855 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002047/0.1618, allocations: 71.83 kB / 0.6856 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008546/0.1627, allocations: 0.7315 MB / 0.6863 GB, free: 2.492 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.1628, allocations: 46.55 kB / 0.6863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1629, allocations: 40.83 kB / 0.6864 GB, free: 2.395 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.1629, allocations: 0 / 0.6864 GB, free: 2.395 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.1632, allocations: 126.6 kB / 0.6865 GB, free: 2.246 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1632, allocations: 0 / 0.6865 GB, free: 2.246 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004308/0.1636, allocations: 169.4 kB / 0.6867 GB, free: 2.074 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.1637, allocations: 128.5 kB / 0.6868 GB, free: 1.918 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.1639, allocations: 207.6 kB / 0.687 GB, free: 1.707 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.1639, allocations: 29.69 kB / 0.687 GB, free: 1.672 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.473e-05/0.164, allocations: 131.8 kB / 0.6871 GB, free: 1.539 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.164, allocations: 35.69 kB / 0.6872 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.1641, allocations: 45.86 kB / 0.6872 GB, free: 1.453 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1642, allocations: 326.8 kB / 0.6875 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.1643, allocations: 35.97 kB / 0.6876 GB, free: 1.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1645, allocations: 155.2 kB / 0.6877 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002783/0.1647, allocations: 198.4 kB / 0.6879 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1648, allocations: 0 / 0.6879 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003578/0.1651, allocations: 205 kB / 0.6881 GB, free: 444 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1651, allocations: 11.94 kB / 0.6881 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1652, allocations: 4 kB / 0.6881 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1652, allocations: 4.5 kB / 0.6881 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.1653, allocations: 43.91 kB / 0.6881 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.1653, allocations: 4.25 kB / 0.6881 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.1655, allocations: 27.77 kB / 0.6882 GB, free: 348 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1655, allocations: 20 kB / 0.6882 GB, free: 328 kB / 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.0001039/0.1656, allocations: 131.5 kB / 0.6883 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.1656, allocations: 19.8 kB / 0.6883 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.267e-05/0.1657, allocations: 21.34 kB / 0.6884 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1657, allocations: 8 kB / 0.6884 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1657, allocations: 0 / 0.6884 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1657, allocations: 8.219 kB / 0.6884 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2528/0.4185, allocations: 0.5006 MB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.4186, allocations: 0.7812 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.4187, allocations: 17.38 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.4187, allocations: 3.625 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.4187, allocations: 5.672 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.4187, allocations: 10.48 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4187, allocations: 0.9062 kB / 0.6889 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004739/0.4192, allocations: 358.7 kB / 0.6892 GB, free: 17.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.4193, allocations: 95.12 kB / 0.6893 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.4193, allocations: 6.438 kB / 0.6893 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.4195, allocations: 12.5 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.4195, allocations: 17.36 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.4196, allocations: 4.703 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.4197, allocations: 139.5 kB / 0.6895 GB, free: 17.51 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4197, allocations: 0 / 0.6895 GB, free: 17.51 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.42, allocations: 41.98 kB / 0.6895 GB, free: 17.51 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 9.583e-05/0.4201, allocations: 101.6 kB / 0.6896 GB, free: 17.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.4204, allocations: 119.4 kB / 0.6898 GB, free: 17.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4205, allocations: 2.562 kB / 0.6898 GB, free: 17.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.4206, allocations: 49.7 kB / 0.6898 GB, free: 17.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.4211, allocations: 71.23 kB / 0.6899 GB, free: 17.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000497/0.4216, allocations: 343 kB / 0.6902 GB, free: 17.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.4218, allocations: 0.7221 MB / 0.6909 GB, free: 16.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.672e-05/0.4218, allocations: 17.41 kB / 0.6909 GB, free: 16.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.4219, allocations: 21.64 kB / 0.6909 GB, free: 16.49 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4219, allocations: 1.375 kB / 0.6909 GB, free: 16.49 MB / 494.1 MB Notification: Performance of Templates: time 0.004808/0.4267, allocations: 2.016 MB / 0.6929 GB, free: 16.42 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)