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.001673/0.001673, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002202/0.002202, allocations: 198.8 kB / 16.79 MB, free: 6.809 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.75/2.75, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 70.14 kB / 0.8991 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3457, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002288/0.348, allocations: 0.9401 MB / 1.054 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001644/0.3497, allocations: 1.198 MB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.3498, allocations: 0 / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.611e-05/0.3499, allocations: 7.922 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.35, allocations: 15.92 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.3505, allocations: 130.8 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.3507, allocations: 159.6 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.3508, allocations: 29.11 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.351, allocations: 67.75 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3511, allocations: 59.75 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.85e-05/0.3511, allocations: 8 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.276e-05/0.3512, allocations: 19.98 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.22e-05/0.3513, allocations: 23.92 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.3514, allocations: 67.69 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.3515, allocations: 116 kB / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3515, allocations: 0 / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.41e-07/0.3516, allocations: 0 / 1.056 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3516, allocations: 0 / 1.056 GB, free: 5.434 MB / 0.8106 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.0007751/0.3523, allocations: 456.7 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3524, allocations: 15.97 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.495e-05/0.3525, allocations: 16.84 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006242/0.3531, allocations: 260.1 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.3531, allocations: 16.3 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.3532, allocations: 12.38 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.3534, allocations: 86.22 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3535, allocations: 7.922 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.3535, allocations: 4 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3535, allocations: 0 / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.3537, allocations: 47.95 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008055/0.3545, allocations: 384.5 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.3546, allocations: 42.56 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.578e-05/0.3547, allocations: 20.84 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.3548, allocations: 0 / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.3551, allocations: 107.3 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.3551, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.00045/0.3555, allocations: 133.8 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.3556, allocations: 55.44 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.3557, allocations: 143 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.3558, allocations: 33.7 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/0.3559, allocations: 112 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.3559, allocations: 35.61 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.488e-05/0.356, allocations: 45.69 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3562, allocations: 318.8 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.3563, allocations: 51.95 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.3566, allocations: 136.6 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.3569, allocations: 204.6 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3569, allocations: 0 / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004916/0.3574, allocations: 239.3 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.414e-05/0.3575, allocations: 42.81 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3575, allocations: 0 / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.3576, allocations: 4 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3577, allocations: 27.92 kB / 1.058 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.009e-05/0.3577, allocations: 7.938 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.358, allocations: 43.8 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.358, allocations: 12 kB / 1.059 GB, free: 2.047 MB / 0.8106 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.000221/0.3583, allocations: 129.8 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.3583, allocations: 7.906 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.342e-05/0.3584, allocations: 16.7 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3584, allocations: 3.938 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3584, allocations: 3.938 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3584, allocations: 0 / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007021/0.3591, allocations: 410.3 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3591, allocations: 0 / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.729e-05/0.3592, allocations: 15.98 kB / 1.059 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/0.3592, allocations: 7.875 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.3593, allocations: 4 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.3593, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3593, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.3598, allocations: 243.3 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.017e-05/0.3599, allocations: 85.09 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.3599, allocations: 12 kB / 1.059 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.48e-05/0.36, allocations: 12.02 kB / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.189e-05/0.3601, allocations: 4 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.3601, allocations: 11.98 kB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.68e-05/0.3602, allocations: 100.6 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3602, allocations: 0 / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003519/0.3605, allocations: 35.91 kB / 1.06 GB, free: 0.8672 MB / 0.8106 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.0002664/0.3608, allocations: 111.2 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004486/0.3613, allocations: 183.8 kB / 1.06 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.3613, allocations: 4 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.3614, allocations: 40.03 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.3618, allocations: 17.36 kB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006534/0.3624, allocations: 324.3 kB / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.3629, allocations: 0.7048 MB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.363, allocations: 19.42 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of SimCode: time 6.31e-07/0.363, allocations: 0 / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of Templates: time 0.00421/0.3672, allocations: 1.711 MB / 1.063 GB, free: 13.7 MB / 0.8262 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