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.001101/0.001101, allocations: 104.7 kB / 16.27 MB, free: 5.977 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.001134/0.001134, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.234/1.234, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 287.7 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9021/0.9021, allocations: 169.3 MB / 0.4988 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 99.48 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1529, allocations: 86.98 MB / 0.6808 GB, free: 8.172 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00298/0.1559, allocations: 1.827 MB / 0.6826 GB, free: 6.328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009456/0.1569, allocations: 0.5383 MB / 0.6831 GB, free: 5.785 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.157, allocations: 4 kB / 0.6831 GB, free: 5.781 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1571, allocations: 35.66 kB / 0.6832 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.168e-05/0.1573, allocations: 23.73 kB / 0.6832 GB, free: 5.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.1575, allocations: 67.86 kB / 0.6833 GB, free: 5.656 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.1577, allocations: 163.5 kB / 0.6834 GB, free: 5.496 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.1578, allocations: 61.89 kB / 0.6835 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.619e-05/0.1579, allocations: 47.8 kB / 0.6835 GB, free: 5.391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.087e-05/0.158, allocations: 59.64 kB / 0.6836 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.158, allocations: 12 kB / 0.6836 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.998e-05/0.158, allocations: 8 kB / 0.6836 GB, free: 5.312 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.1581, allocations: 31.84 kB / 0.6836 GB, free: 5.281 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.139e-05/0.1582, allocations: 67.53 kB / 0.6837 GB, free: 5.215 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.1584, allocations: 127.5 kB / 0.6838 GB, free: 5.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1584, allocations: 0 / 0.6838 GB, free: 5.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1584, allocations: 0 / 0.6838 GB, free: 5.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1584, allocations: 4 kB / 0.6838 GB, free: 5.086 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.0008416/0.1592, allocations: 478.6 kB / 0.6843 GB, free: 4.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1593, allocations: 8.031 kB / 0.6843 GB, free: 4.562 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.183e-05/0.1594, allocations: 20.69 kB / 0.6843 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1597, allocations: 224 kB / 0.6845 GB, free: 4.285 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1597, allocations: 16.31 kB / 0.6845 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.1597, allocations: 12.38 kB / 0.6846 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.16, allocations: 155.2 kB / 0.6847 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1601, allocations: 0 / 0.6847 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.1601, allocations: 4 kB / 0.6847 GB, free: 4.082 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1601, allocations: 4 kB / 0.6847 GB, free: 4.078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.1603, allocations: 79.77 kB / 0.6848 GB, free: 4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.1614, allocations: 0.7315 MB / 0.6855 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.1615, allocations: 58.47 kB / 0.6856 GB, free: 3.137 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1617, allocations: 32.83 kB / 0.6856 GB, free: 3.102 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.1617, allocations: 0 / 0.6856 GB, free: 3.102 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.162, allocations: 138.6 kB / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.162, allocations: 0 / 0.6857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005012/0.1625, allocations: 157.4 kB / 0.6859 GB, free: 2.781 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/0.1626, allocations: 140.7 kB / 0.686 GB, free: 2.613 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.1628, allocations: 203.6 kB / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1629, allocations: 25.7 kB / 0.6862 GB, free: 2.375 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.295e-05/0.1629, allocations: 131.8 kB / 0.6863 GB, free: 2.242 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.163, allocations: 31.55 kB / 0.6864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.163, allocations: 41.7 kB / 0.6864 GB, free: 2.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.1631, allocations: 330.8 kB / 0.6867 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1633, allocations: 39.98 kB / 0.6868 GB, free: 1.793 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1635, allocations: 146.5 kB / 0.6869 GB, free: 1.598 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.1638, allocations: 202.3 kB / 0.6871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1638, allocations: 0 / 0.6871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000384/0.1642, allocations: 217.1 kB / 0.6873 GB, free: 1.129 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1642, allocations: 8 kB / 0.6873 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.1642, allocations: 4 kB / 0.6873 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1642, allocations: 4 kB / 0.6873 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1643, allocations: 31.92 kB / 0.6874 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1644, allocations: 7.984 kB / 0.6874 GB, free: 1.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.1645, allocations: 32.14 kB / 0.6874 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1645, allocations: 12 kB / 0.6874 GB, free: 1.031 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 9.64e-05/0.1646, allocations: 133.7 kB / 0.6875 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.1647, allocations: 19.81 kB / 0.6875 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.1647, allocations: 25.62 kB / 0.6876 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.1647, allocations: 0 / 0.6876 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1647, allocations: 0 / 0.6876 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1648, allocations: 7.984 kB / 0.6876 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006838/0.1654, allocations: 0.5172 MB / 0.6881 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1655, allocations: 0 / 0.6881 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.1656, allocations: 16.3 kB / 0.6881 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1656, allocations: 4 kB / 0.6881 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1656, allocations: 4 kB / 0.6881 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1656, allocations: 4 kB / 0.6881 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.1656, allocations: 7.938 kB / 0.6881 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2656/0.4312, allocations: 352.5 kB / 0.6885 GB, free: 17.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.4313, allocations: 95.2 kB / 0.6885 GB, free: 17.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.4313, allocations: 3.188 kB / 0.6886 GB, free: 17.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.4316, allocations: 14.58 kB / 0.6886 GB, free: 17.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.4316, allocations: 20.98 kB / 0.6886 GB, free: 17.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.4316, allocations: 6.625 kB / 0.6886 GB, free: 17.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.4318, allocations: 138.5 kB / 0.6887 GB, free: 17.71 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4318, allocations: 1 kB / 0.6887 GB, free: 17.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.4321, allocations: 36.61 kB / 0.6888 GB, free: 17.71 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.0001084/0.4322, allocations: 104.8 kB / 0.6889 GB, free: 17.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.4326, allocations: 122.2 kB / 0.689 GB, free: 17.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4326, allocations: 1.5 kB / 0.689 GB, free: 17.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.4328, allocations: 52.52 kB / 0.689 GB, free: 17.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005331/0.4333, allocations: 60.58 kB / 0.6891 GB, free: 17.62 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.4338, allocations: 380.9 kB / 0.6894 GB, free: 17.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.434, allocations: 0.7229 MB / 0.6902 GB, free: 16.69 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.434, allocations: 17.88 kB / 0.6902 GB, free: 16.68 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.434, allocations: 0 / 0.6902 GB, free: 16.68 MB / 494.1 MB Notification: Performance of Templates: time 0.004079/0.4381, allocations: 2.14 MB / 0.6923 GB, free: 16.57 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)