Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.0009698/0.0009696, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.000967/0.0009672, allocations: 191.2 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.15/1.15, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.282/1.282, allocations: 251.6 MB / 0.5089 GB, free: 3.277 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.91 kB / 0.6217 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3939, allocations: 104.7 MB / 0.724 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002745/0.3967, allocations: 1.864 MB / 0.7258 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.000792/0.3975, allocations: 0.5889 MB / 0.7264 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.204e-05/0.3976, allocations: 4 kB / 0.7264 GB, free: 10.63 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.3977, allocations: 19.8 kB / 0.7264 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.981e-05/0.3978, allocations: 15.84 kB / 0.7264 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.398, allocations: 71.81 kB / 0.7265 GB, free: 10.53 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.3982, allocations: 175.5 kB / 0.7267 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3983, allocations: 45.59 kB / 0.7267 GB, free: 10.31 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 6.59e-05/0.3984, allocations: 51.8 kB / 0.7268 GB, free: 10.26 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.92e-05/0.3985, allocations: 59.62 kB / 0.7268 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.3985, allocations: 12 kB / 0.7268 GB, free: 10.19 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.714e-05/0.3985, allocations: 12 kB / 0.7268 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.937e-05/0.3986, allocations: 27.91 kB / 0.7269 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.583e-05/0.3986, allocations: 71.48 kB / 0.7269 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3988, allocations: 125.5 kB / 0.727 GB, free: 9.961 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3988, allocations: 0 / 0.727 GB, free: 9.961 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3988, allocations: 0 / 0.727 GB, free: 9.961 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.3988, allocations: 0 / 0.727 GB, free: 9.961 MB / 0.545 GB 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.0005772/0.3994, allocations: 474.7 kB / 0.7275 GB, free: 9.449 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.3994, allocations: 12.03 kB / 0.7275 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.3994, allocations: 20.66 kB / 0.7275 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3996, allocations: 231.9 kB / 0.7278 GB, free: 9.152 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.3997, allocations: 12.31 kB / 0.7278 GB, free: 9.141 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.118e-05/0.3997, allocations: 16.28 kB / 0.7278 GB, free: 9.125 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.4, allocations: 153.1 kB / 0.7279 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.4, allocations: 0 / 0.7279 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.4, allocations: 7.984 kB / 0.7279 GB, free: 8.949 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.4, allocations: 4 kB / 0.7279 GB, free: 8.945 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.4002, allocations: 67.83 kB / 0.728 GB, free: 8.879 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007494/0.401, allocations: 0.7431 MB / 0.7287 GB, free: 8.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.4011, allocations: 46.55 kB / 0.7288 GB, free: 8.016 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.811e-05/0.4012, allocations: 36.84 kB / 0.7288 GB, free: 7.977 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.4012, allocations: 0 / 0.7288 GB, free: 7.977 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.4014, allocations: 126.7 kB / 0.7289 GB, free: 7.828 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.103e-06/0.4015, allocations: 0 / 0.7289 GB, free: 7.828 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0003994/0.4019, allocations: 169.3 kB / 0.7291 GB, free: 7.656 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.4019, allocations: 132.5 kB / 0.7292 GB, free: 7.496 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.4021, allocations: 199 kB / 0.7294 GB, free: 7.293 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.4021, allocations: 29.7 kB / 0.7294 GB, free: 7.258 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.4022, allocations: 132 kB / 0.7296 GB, free: 7.125 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.4022, allocations: 39.7 kB / 0.7296 GB, free: 7.086 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/0.4023, allocations: 41.7 kB / 0.7296 GB, free: 7.039 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.4024, allocations: 330.8 kB / 0.73 GB, free: 6.707 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.4025, allocations: 39.97 kB / 0.73 GB, free: 6.668 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.4026, allocations: 146.5 kB / 0.7301 GB, free: 6.473 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.4029, allocations: 198.4 kB / 0.7303 GB, free: 6.227 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4029, allocations: 0 / 0.7303 GB, free: 6.227 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00032/0.4032, allocations: 213 kB / 0.7305 GB, free: 6.012 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.4032, allocations: 12.44 kB / 0.7305 GB, free: 6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4033, allocations: 8.188 kB / 0.7305 GB, free: 5.992 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.4033, allocations: 8 kB / 0.7305 GB, free: 5.984 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.4034, allocations: 35.92 kB / 0.7306 GB, free: 5.949 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.4034, allocations: 11.98 kB / 0.7306 GB, free: 5.938 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.4035, allocations: 23.83 kB / 0.7306 GB, free: 5.914 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.4036, allocations: 16 kB / 0.7306 GB, free: 5.898 MB / 0.545 GB 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 8.811e-05/0.4036, allocations: 129.7 kB / 0.7308 GB, free: 5.762 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.4037, allocations: 15.81 kB / 0.7308 GB, free: 5.746 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.4037, allocations: 29.39 kB / 0.7308 GB, free: 5.715 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4037, allocations: 0 / 0.7308 GB, free: 5.715 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4037, allocations: 4 kB / 0.7308 GB, free: 5.711 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4037, allocations: 0 / 0.7308 GB, free: 5.711 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/0.4044, allocations: 0.5131 MB / 0.7313 GB, free: 5.141 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4044, allocations: 4 kB / 0.7313 GB, free: 5.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.984e-05/0.4045, allocations: 15.98 kB / 0.7313 GB, free: 5.121 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.4045, allocations: 4 kB / 0.7313 GB, free: 5.117 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.4045, allocations: 4 kB / 0.7313 GB, free: 5.113 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4045, allocations: 4 kB / 0.7313 GB, free: 5.109 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4045, allocations: 3.938 kB / 0.7313 GB, free: 5.105 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.4049, allocations: 360.4 kB / 0.7317 GB, free: 4.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.407e-05/0.405, allocations: 96.95 kB / 0.7318 GB, free: 4.617 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.405, allocations: 4 kB / 0.7318 GB, free: 4.613 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.4052, allocations: 12.08 kB / 0.7318 GB, free: 4.602 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.4052, allocations: 19.91 kB / 0.7318 GB, free: 4.582 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.4052, allocations: 8 kB / 0.7318 GB, free: 4.574 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.085e-05/0.4053, allocations: 144.4 kB / 0.732 GB, free: 4.434 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.523e-06/0.4053, allocations: 0 / 0.732 GB, free: 4.434 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002994/0.4056, allocations: 31.94 kB / 0.732 GB, free: 4.402 MB / 0.545 GB 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.0001011/0.4057, allocations: 103.2 kB / 0.7321 GB, free: 4.293 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002654/0.406, allocations: 120.1 kB / 0.7322 GB, free: 4.176 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.406, allocations: 0 / 0.7322 GB, free: 4.176 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.4062, allocations: 47.91 kB / 0.7322 GB, free: 4.129 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.4067, allocations: 73.02 kB / 0.7323 GB, free: 4.062 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004887/0.4072, allocations: 400.4 kB / 0.7327 GB, free: 3.633 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.4074, allocations: 0.7164 MB / 0.7334 GB, free: 2.891 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.187e-05/0.4075, allocations: 25.53 kB / 0.7334 GB, free: 2.867 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.74e-05/0.4075, allocations: 19.44 kB / 0.7334 GB, free: 2.852 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4075, allocations: 0 / 0.7334 GB, free: 2.852 MB / 0.545 GB Notification: Performance of Templates: time 0.004051/0.4116, allocations: 1.906 MB / 0.7353 GB, free: 0.9688 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)