Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_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.001104/0.001104, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001137/0.001137, allocations: 177.3 kB / 15.94 MB, free: 228 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.426/1.426, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.851/2.851, allocations: 436.5 MB / 0.7104 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004041/0.0004044, allocations: 12 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8573/0.8577, allocations: 153.6 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002007/0.8598, allocations: 1.484 MB / 1.022 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.8606, allocations: 0.5186 MB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.8607, allocations: 3.938 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.363e-05/0.8608, allocations: 7.922 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.8609, allocations: 31.89 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.8611, allocations: 51.94 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.8613, allocations: 119.7 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.8615, allocations: 37.83 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.852e-05/0.8616, allocations: 39.8 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.897e-05/0.8616, allocations: 51.69 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.174e-05/0.8617, allocations: 8 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.8617, allocations: 7.938 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.404e-05/0.8617, allocations: 15.92 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.514e-05/0.8618, allocations: 49.64 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.8619, allocations: 89.73 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.8619, allocations: 3.938 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8619, allocations: 3.938 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.8619, allocations: 0 / 1.023 GB, free: 14.57 MB / 0.7794 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.0006386/0.8626, allocations: 446.7 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.8626, allocations: 15.98 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.8627, allocations: 15.81 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.8629, allocations: 226.6 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.863, allocations: 11.86 kB / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.863, allocations: 15.95 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.8633, allocations: 157.9 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.8633, allocations: 0 / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.8633, allocations: 11.98 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.8633, allocations: 0 / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.8636, allocations: 79.89 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.8645, allocations: 0.7471 MB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.8646, allocations: 58.48 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.8646, allocations: 0 / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.8649, allocations: 122.8 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.8649, allocations: 4 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004668/0.8654, allocations: 177.3 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.8655, allocations: 136.8 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.8657, allocations: 198.9 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.8657, allocations: 33.7 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.61e-05/0.8658, allocations: 123.9 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.8658, allocations: 35.69 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.8658, allocations: 4 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.8659, allocations: 330.8 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.8661, allocations: 48.34 kB / 1.026 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.8662, allocations: 148.6 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.8664, allocations: 63.88 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.8664, allocations: 0 / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003824/0.8668, allocations: 225.3 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.8668, allocations: 8 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.8668, allocations: 4 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.8668, allocations: 4.234 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.867, allocations: 35.92 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.867, allocations: 7.984 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.8671, allocations: 35.95 kB / 1.027 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.8672, allocations: 12 kB / 1.027 GB, free: 10.75 MB / 0.7794 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 ($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.0001074/0.8673, allocations: 142.5 kB / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.8673, allocations: 15.81 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.8674, allocations: 25.39 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.8674, allocations: 3.938 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.8674, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.8674, allocations: 4 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007554/0.8681, allocations: 0.521 MB / 1.027 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.8682, allocations: 4 kB / 1.027 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.8683, allocations: 23.92 kB / 1.027 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.8683, allocations: 4 kB / 1.027 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.8683, allocations: 0 / 1.027 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.8683, allocations: 4 kB / 1.027 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.8683, allocations: 320 / 1.027 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005313/0.8689, allocations: 417.3 kB / 1.028 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.8689, allocations: 100.9 kB / 1.028 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.869, allocations: 4 kB / 1.028 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.8692, allocations: 19.94 kB / 1.028 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.019e-05/0.8692, allocations: 15.98 kB / 1.028 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.8692, allocations: 4 kB / 1.028 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000112/0.8694, allocations: 140.6 kB / 1.028 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8694, allocations: 0 / 1.028 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003296/0.8697, allocations: 31.98 kB / 1.028 GB, free: 9.168 MB / 0.7794 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 (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.0001414/0.8698, allocations: 103.2 kB / 1.028 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003355/0.8702, allocations: 123.9 kB / 1.028 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.8702, allocations: 3.938 kB / 1.028 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.8704, allocations: 52.97 kB / 1.028 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004668/0.8708, allocations: 59.67 kB / 1.028 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006529/0.8715, allocations: 394.7 kB / 1.029 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.8718, allocations: 0.7322 MB / 1.03 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.252e-05/0.8719, allocations: 21.84 kB / 1.03 GB, free: 7.625 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.8719, allocations: 19.44 kB / 1.03 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.8719, allocations: 0 / 1.03 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of Templates: time 0.004583/0.8765, allocations: 1.739 MB / 1.031 GB, free: 5.887 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches