Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 96.14 kB / 16.03 MB, free: 68 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.001498/0.001499, allocations: 185.1 kB / 16.92 MB, free: 6.75 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.481/1.481, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003899/0.0003905, allocations: 16 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.738/0.7384, allocations: 142.4 MB / 0.9557 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001022/0.7395, allocations: 0.596 MB / 0.9563 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.7409, allocations: 1.168 MB / 0.9575 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.947e-05/0.7409, allocations: 9.219 kB / 0.9575 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.741, allocations: 7.922 kB / 0.9575 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.375e-05/0.7411, allocations: 11.14 kB / 0.9575 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004907/0.7416, allocations: 136.6 kB / 0.9576 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.7417, allocations: 153.1 kB / 0.9578 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.7419, allocations: 38.22 kB / 0.9578 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.742, allocations: 56.92 kB / 0.9579 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.884e-05/0.7421, allocations: 53.78 kB / 0.9579 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.7421, allocations: 7.219 kB / 0.9579 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.907e-05/0.7422, allocations: 21.61 kB / 0.9579 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.7422, allocations: 20.22 kB / 0.958 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.134e-05/0.7423, allocations: 78.2 kB / 0.958 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.7424, allocations: 111.3 kB / 0.9581 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.7425, allocations: 0 / 0.9581 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7425, allocations: 1.438 kB / 0.9581 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.7425, allocations: 4 kB / 0.9581 GB, free: 5.891 MB / 0.7169 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.0005662/0.743, allocations: 435.5 kB / 0.9586 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.7431, allocations: 8.844 kB / 0.9586 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.7432, allocations: 13.47 kB / 0.9586 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000518/0.7437, allocations: 263.9 kB / 0.9588 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.7437, allocations: 13.69 kB / 0.9588 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.7438, allocations: 9.344 kB / 0.9588 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.744, allocations: 103.3 kB / 0.9589 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.744, allocations: 3.938 kB / 0.959 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.744, allocations: 5.031 kB / 0.959 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.744, allocations: 1.188 kB / 0.959 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.7442, allocations: 58.64 kB / 0.959 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006427/0.7449, allocations: 391.1 kB / 0.9594 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.745, allocations: 34.81 kB / 0.9594 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.57e-05/0.7451, allocations: 36.27 kB / 0.9595 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.7451, allocations: 1.219 kB / 0.9595 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.7454, allocations: 99.11 kB / 0.9595 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/0.7454, allocations: 0 / 0.9595 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000437/0.7458, allocations: 144.9 kB / 0.9597 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.7459, allocations: 65.11 kB / 0.9597 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.499e-05/0.746, allocations: 153.3 kB / 0.9599 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.746, allocations: 32.45 kB / 0.9599 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.746, allocations: 114.8 kB / 0.96 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.7461, allocations: 31.67 kB / 0.9601 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.7461, allocations: 28.58 kB / 0.9601 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.899e-05/0.7462, allocations: 317.6 kB / 0.9604 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.7463, allocations: 54.2 kB / 0.9604 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.7465, allocations: 139.4 kB / 0.9606 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.7468, allocations: 209.2 kB / 0.9608 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.7468, allocations: 1.375 kB / 0.9608 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004716/0.7473, allocations: 252.9 kB / 0.961 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.7473, allocations: 38.33 kB / 0.9611 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.7474, allocations: 6.75 kB / 0.9611 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.7474, allocations: 4.125 kB / 0.9611 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.7475, allocations: 27.17 kB / 0.9611 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.7475, allocations: 12.42 kB / 0.9611 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.7478, allocations: 48.88 kB / 0.9612 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.7478, allocations: 17.61 kB / 0.9612 GB, free: 3.195 MB / 0.7169 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 8.941e-05/0.7479, allocations: 135.3 kB / 0.9613 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.7479, allocations: 11.97 kB / 0.9613 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.748, allocations: 11.47 kB / 0.9613 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.748, allocations: 1.375 kB / 0.9613 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.748, allocations: 3.938 kB / 0.9613 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.748, allocations: 5.359 kB / 0.9613 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/0.7485, allocations: 405.4 kB / 0.9617 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7485, allocations: 0 / 0.9617 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.694e-05/0.7486, allocations: 16.27 kB / 0.9617 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.7486, allocations: 7.938 kB / 0.9617 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.7486, allocations: 1.406 kB / 0.9617 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.7486, allocations: 1.219 kB / 0.9617 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.7487, allocations: 0 / 0.9617 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004089/0.7491, allocations: 258.3 kB / 0.962 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.7491, allocations: 92.02 kB / 0.9621 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.7491, allocations: 0.8125 kB / 0.9621 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.64e-05/0.7492, allocations: 14.06 kB / 0.9621 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.7493, allocations: 11.7 kB / 0.9621 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.7493, allocations: 3.562 kB / 0.9621 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.672e-05/0.7493, allocations: 109.4 kB / 0.9622 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7494, allocations: 4 kB / 0.9622 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003045/0.7497, allocations: 35.41 kB / 0.9622 GB, free: 2.234 MB / 0.7169 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.0001661/0.7498, allocations: 111.1 kB / 0.9624 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004069/0.7502, allocations: 187.5 kB / 0.9625 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7503, allocations: 0 / 0.9625 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.7504, allocations: 48.86 kB / 0.9626 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.7507, allocations: 16.83 kB / 0.9626 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005197/0.7512, allocations: 340.4 kB / 0.9629 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.7514, allocations: 0.7075 MB / 0.9636 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.163e-05/0.7514, allocations: 19.95 kB / 0.9636 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7514, allocations: 0 / 0.9636 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of Templates: time 0.003434/0.7549, allocations: 1.681 MB / 0.9653 GB, free: 140 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches