Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 99.86 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.001486/0.001486, 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.496/1.496, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.76/2.76, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004313/0.0004312, allocations: 12 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9621/0.9625, allocations: 153.7 MB / 1.021 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001286/0.9639, allocations: 0.5806 MB / 1.021 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.9655, allocations: 1.14 MB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.9656, allocations: 4 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.471e-05/0.9656, allocations: 3.938 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.9657, allocations: 15.91 kB / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.9663, allocations: 138.4 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.9665, allocations: 83.89 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.9666, allocations: 29.05 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.9668, allocations: 55.83 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.9669, allocations: 51.75 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.9669, allocations: 8 kB / 1.023 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.692e-05/0.967, allocations: 23.98 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.483e-05/0.967, allocations: 19.91 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.478e-05/0.9671, allocations: 45.64 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.9673, allocations: 109.7 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.9673, allocations: 0 / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.298e-06/0.9673, allocations: 4 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.778e-06/0.9673, allocations: 3.938 kB / 1.023 GB, free: 14.82 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007317/0.968, allocations: 440.6 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.9681, allocations: 8.031 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.484e-05/0.9682, allocations: 11.91 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005609/0.9687, allocations: 252.4 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.9688, allocations: 15.94 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.9688, allocations: 16 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.9691, allocations: 93.58 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.9691, allocations: 0 / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.9691, allocations: 3.938 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.9691, allocations: 7.984 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.9693, allocations: 59.89 kB / 1.024 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007413/0.97, allocations: 392.4 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.9702, allocations: 38.56 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.9702, allocations: 128 / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.9704, allocations: 103.3 kB / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.9705, allocations: 0 / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004397/0.9709, allocations: 149.4 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.971, allocations: 55.41 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.9711, allocations: 147.4 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.9711, allocations: 29.7 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.428e-05/0.9712, allocations: 108 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.9713, allocations: 35.53 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.9713, allocations: 4 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.9714, allocations: 318.8 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.9716, allocations: 55.97 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.9718, allocations: 131.1 kB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.972, allocations: 97.61 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.972, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004664/0.9725, allocations: 251.2 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.9725, allocations: 33.7 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.9725, allocations: 4 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.9725, allocations: 7.953 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.9727, allocations: 31.92 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.9727, allocations: 7.984 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.9729, allocations: 47.97 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.973, allocations: 19.94 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,sampleTrigger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001177/0.9731, allocations: 128.5 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.9731, allocations: 15.81 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.986e-05/0.9732, allocations: 12.72 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.9732, allocations: 7.953 kB / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.9732, allocations: 7.938 kB / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9732, allocations: 3.984 kB / 1.026 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.9737, allocations: 398.4 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9738, allocations: 4 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.06e-05/0.9739, allocations: 15.98 kB / 1.026 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.9739, allocations: 3.953 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.9739, allocations: 4 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.9739, allocations: 0 / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.9739, allocations: 3.984 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004168/0.9743, allocations: 255.3 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.9744, allocations: 88.92 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.9744, allocations: 3.953 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.085e-05/0.9745, allocations: 16.03 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.756e-05/0.9746, allocations: 11.98 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.9746, allocations: 4 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.337e-05/0.9747, allocations: 105.1 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.9747, allocations: 0 / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002793/0.9749, allocations: 31.94 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0002/0.9752, allocations: 111.2 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004016/0.9756, allocations: 191.2 kB / 1.027 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.9756, allocations: 0 / 1.027 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.9757, allocations: 40.67 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.9759, allocations: 32.16 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005432/0.9765, allocations: 289.8 kB / 1.028 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.9768, allocations: 0.7087 MB / 1.028 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.765e-05/0.9769, allocations: 16.88 kB / 1.028 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.9769, allocations: 15.44 kB / 1.028 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.9769, allocations: 0 / 1.028 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of Templates: time 0.004579/0.9815, allocations: 1.467 MB / 1.03 GB, free: 7.523 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches