Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.284/2.284, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001008, allocations: 180.8 kB / 491.2 MB, free: 1.562 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009573/0.0009577, allocations: 87.95 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.065e-05/3.102e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3329, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.133/1.466, allocations: 150 MB / 1.359 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/1.466, allocations: 69.81 kB / 1.359 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009207/1.475, allocations: 3.276 MB / 1.362 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.472e-06/1.475, allocations: 0 / 1.362 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.053e-06/1.475, allocations: 0.9375 kB / 1.362 GB, free: 33.06 MB / 0.8386 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.0005239/1.476, allocations: 435.4 kB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/1.476, allocations: 7.844 kB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/1.476, allocations: 17.09 kB / 1.362 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/1.476, allocations: 179.5 kB / 1.363 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/1.476, allocations: 5.422 kB / 1.363 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.604e-05/1.476, allocations: 11.66 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.672e-05/1.476, allocations: 31.22 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/1.476, allocations: 66.97 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/1.476, allocations: 4 kB / 1.363 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/1.476, allocations: 3.938 kB / 1.363 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/1.476, allocations: 3.812 kB / 1.363 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/1.477, allocations: 403.5 kB / 1.363 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/1.477, allocations: 26.23 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.124e-05/1.477, allocations: 21.52 kB / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/1.477, allocations: 0 / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/1.478, allocations: 89.33 kB / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/1.478, allocations: 0 / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002081/1.478, allocations: 86.25 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/1.478, allocations: 55.25 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.597e-05/1.478, allocations: 128.5 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/1.478, allocations: 25.7 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.133e-05/1.478, allocations: 109.6 kB / 1.364 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/1.478, allocations: 26.28 kB / 1.364 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/1.478, allocations: 0 / 1.364 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001038/1.478, allocations: 325.1 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.841e-05/1.478, allocations: 41.53 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/1.478, allocations: 106.9 kB / 1.364 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/1.479, allocations: 70.7 kB / 1.364 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.479, allocations: 0 / 1.364 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004247/1.479, allocations: 204.9 kB / 1.364 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/1.479, allocations: 42.7 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/1.479, allocations: 3.875 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/1.479, allocations: 5.453 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/1.479, allocations: 32.02 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/1.479, allocations: 3.844 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/1.48, allocations: 50.2 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/1.48, allocations: 16.61 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * 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 9.732e-05/1.48, allocations: 114.5 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/1.48, allocations: 11.88 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/1.48, allocations: 17.2 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/1.48, allocations: 0 / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.48, allocations: 96 / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/1.48, allocations: 7.781 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003878/1.48, allocations: 356.1 kB / 1.365 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/1.48, allocations: 5.828 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/1.48, allocations: 18.53 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.48, allocations: 0 / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/1.48, allocations: 0 / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.48, allocations: 5.031 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.48, allocations: 0 / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/1.481, allocations: 212.8 kB / 1.365 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/1.481, allocations: 98.3 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/1.481, allocations: 0 / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/1.481, allocations: 10.47 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.853e-05/1.481, allocations: 7.797 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/1.481, allocations: 8.625 kB / 1.365 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.419e-05/1.481, allocations: 99.19 kB / 1.366 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.481, allocations: 0 / 1.366 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002775/1.481, allocations: 28.47 kB / 1.366 GB, free: 30.45 MB / 0.8386 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 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete 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.0001925/1.481, allocations: 121.2 kB / 1.366 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002252/1.482, allocations: 158.4 kB / 1.366 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/1.482, allocations: 0 / 1.366 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.157e-05/1.482, allocations: 33.78 kB / 1.366 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/1.482, allocations: 21.12 kB / 1.366 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004068/1.482, allocations: 179.1 kB / 1.366 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/1.483, allocations: 0.711 MB / 1.367 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.666e-05/1.483, allocations: 6.531 kB / 1.367 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/1.483, allocations: 18.41 kB / 1.367 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.483, allocations: 0 / 1.367 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of Templates: time 0.003977/1.487, allocations: 1.424 MB / 1.368 GB, free: 29.34 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches