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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001759/0.00176, allocations: 108.1 kB / 15.99 MB, free: 5.906 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.001921/0.001921, allocations: 195.4 kB / 16.91 MB, free: 5.754 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.405/1.405, allocations: 222.9 MB / 240.6 MB, free: 13.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.638/2.638, allocations: 469.4 MB / 0.7423 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 64 kB / 0.9083 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3478, allocations: 159.1 MB / 1.064 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002404/0.3502, allocations: 0.9469 MB / 1.065 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.3519, allocations: 1.178 MB / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.809e-05/0.352, allocations: 0 / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.132e-05/0.3521, allocations: 7.922 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.801e-05/0.3522, allocations: 15.88 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.3527, allocations: 139.3 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.3529, allocations: 167.7 kB / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.3531, allocations: 45.08 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.3532, allocations: 59.84 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3533, allocations: 67.72 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.3534, allocations: 16 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.676e-05/0.3535, allocations: 27.98 kB / 1.066 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.3535, allocations: 27.86 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.372e-05/0.3536, allocations: 63.72 kB / 1.066 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.3538, allocations: 124 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3538, allocations: 0 / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.395e-06/0.3538, allocations: 4 kB / 1.067 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.976e-06/0.3538, allocations: 3.984 kB / 1.067 GB, free: 12.47 MB / 0.8419 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.00069/0.3545, allocations: 452.8 kB / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3546, allocations: 8.625 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.666e-05/0.3547, allocations: 16.75 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000566/0.3552, allocations: 254 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.3553, allocations: 8.375 kB / 1.067 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.3553, allocations: 16.38 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.3556, allocations: 86.14 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3556, allocations: 3.938 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.3556, allocations: 8 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3556, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.3558, allocations: 51.95 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007386/0.3565, allocations: 392.4 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.3567, allocations: 34.5 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.306e-05/0.3568, allocations: 32.95 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.3568, allocations: 0 / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.3571, allocations: 95.3 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.3571, allocations: 0 / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.00043/0.3575, allocations: 133.5 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.3576, allocations: 67.33 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.3577, allocations: 136.2 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.3578, allocations: 33.7 kB / 1.068 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.779e-05/0.3579, allocations: 108 kB / 1.068 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.3579, allocations: 27.61 kB / 1.068 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.358, allocations: 45.7 kB / 1.068 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3581, allocations: 322.8 kB / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.3583, allocations: 55.95 kB / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.3585, allocations: 125 kB / 1.069 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.3588, allocations: 204.6 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.3588, allocations: 4 kB / 1.069 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000486/0.3593, allocations: 246.9 kB / 1.069 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.3594, allocations: 33.7 kB / 1.069 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3594, allocations: 4 kB / 1.069 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.3594, allocations: 4 kB / 1.069 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.3595, allocations: 28.36 kB / 1.069 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.3595, allocations: 15.86 kB / 1.069 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.3598, allocations: 43.81 kB / 1.07 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.3598, allocations: 11.94 kB / 1.07 GB, free: 9.098 MB / 0.8419 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 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.3599, allocations: 129.8 kB / 1.07 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.3599, allocations: 7.906 kB / 1.07 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.36, allocations: 20.69 kB / 1.07 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.36, allocations: 4.375 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.36, allocations: 3.938 kB / 1.07 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.36, allocations: 3.984 kB / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005993/0.3606, allocations: 398.2 kB / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3606, allocations: 0 / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.746e-05/0.3607, allocations: 15.98 kB / 1.07 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.3607, allocations: 7.938 kB / 1.07 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.3608, allocations: 4 kB / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3608, allocations: 0 / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3608, allocations: 0 / 1.07 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.3613, allocations: 235.3 kB / 1.07 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.3613, allocations: 88.95 kB / 1.07 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.3614, allocations: 8 kB / 1.07 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.453e-05/0.3615, allocations: 8.031 kB / 1.07 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.3615, allocations: 7.984 kB / 1.07 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3616, allocations: 8 kB / 1.07 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.957e-05/0.3617, allocations: 107.2 kB / 1.071 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3617, allocations: 3.938 kB / 1.071 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003231/0.362, allocations: 31.91 kB / 1.071 GB, free: 7.926 MB / 0.8419 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 (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.0002487/0.3622, allocations: 115.9 kB / 1.071 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004331/0.3627, allocations: 179.2 kB / 1.071 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.3627, allocations: 0 / 1.071 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.3628, allocations: 35.92 kB / 1.071 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.3632, allocations: 33.05 kB / 1.071 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006478/0.3638, allocations: 322.6 kB / 1.071 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3641, allocations: 0.7084 MB / 1.072 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.3642, allocations: 19.44 kB / 1.072 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3642, allocations: 0 / 1.072 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of Templates: time 0.003858/0.368, allocations: 1.712 MB / 1.074 GB, free: 4.75 MB / 0.8419 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches