Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.001436/0.001436, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001331/0.001331, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.549/1.549, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.947/2.947, allocations: 437 MB / 0.7099 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 71.89 kB / 0.8686 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8561/0.8581, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002359/0.8605, allocations: 0.9463 MB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001759/0.8623, allocations: 1.187 MB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.8624, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.823e-05/0.8624, allocations: 11.92 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.569e-05/0.8625, allocations: 19.8 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.863, allocations: 131.3 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.8632, allocations: 151.7 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.8634, allocations: 37.03 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.8635, allocations: 63.83 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.8636, allocations: 63.73 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.8636, allocations: 8 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.422e-05/0.8637, allocations: 27.92 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.899e-05/0.8638, allocations: 15.92 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.8639, allocations: 63.78 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.8641, allocations: 157.4 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.8641, allocations: 0 / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.083e-06/0.8641, allocations: 0 / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.757e-06/0.8642, allocations: 4 kB / 1.019 GB, free: 15.84 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.0008138/0.865, allocations: 464.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.865, allocations: 11.97 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.8651, allocations: 16.84 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005815/0.8657, allocations: 256.1 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.8657, allocations: 12.31 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.8658, allocations: 16.38 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.866, allocations: 90.14 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.866, allocations: 3.938 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.866, allocations: 4 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.8661, allocations: 7.984 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.8662, allocations: 43.95 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007969/0.867, allocations: 392.5 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.8672, allocations: 30.56 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.387e-05/0.8673, allocations: 28.95 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.8673, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.8676, allocations: 107.2 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.8676, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004518/0.8681, allocations: 133.4 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.8682, allocations: 59.34 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.8683, allocations: 147.5 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.8684, allocations: 25.7 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.8685, allocations: 111.9 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.8685, allocations: 27.7 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.562e-05/0.8686, allocations: 49.69 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.8688, allocations: 322.8 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.8689, allocations: 47.95 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/0.8692, allocations: 137.7 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.8695, allocations: 200.7 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.8695, allocations: 0 / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005021/0.87, allocations: 242.9 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.8701, allocations: 41.69 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.8701, allocations: 4 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.8701, allocations: 4 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.8702, allocations: 23.92 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.8703, allocations: 7.938 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.8705, allocations: 52.17 kB / 1.022 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.8705, allocations: 8 kB / 1.022 GB, free: 12.45 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 (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.0001382/0.8707, allocations: 129.7 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.8707, allocations: 15.89 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.85e-05/0.8708, allocations: 8.719 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.8708, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.8708, allocations: 7.938 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.8708, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000663/0.8715, allocations: 402.3 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8715, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.105e-05/0.8716, allocations: 11.98 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.8716, allocations: 3.938 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.8716, allocations: 8 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.8716, allocations: 4 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8716, allocations: 480 / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.8721, allocations: 239.2 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/0.8721, allocations: 88.95 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.8722, allocations: 3.938 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.417e-05/0.8723, allocations: 16.03 kB / 1.023 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.8723, allocations: 7.984 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.8723, allocations: 4 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.887e-05/0.8724, allocations: 105 kB / 1.023 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8724, allocations: 0 / 1.023 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002955/0.8727, allocations: 43.83 kB / 1.024 GB, free: 11.27 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 (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.0001846/0.8729, allocations: 107.8 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004036/0.8733, allocations: 179.2 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8733, allocations: 0 / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.8735, allocations: 43.91 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.8738, allocations: 20.59 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005306/0.8743, allocations: 294.7 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.8747, allocations: 0.7128 MB / 1.025 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.885e-05/0.8748, allocations: 16.64 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.995e-05/0.8748, allocations: 15.44 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of SimCode: time 3.9e-07/0.8748, allocations: 0 / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of Templates: time 0.004711/0.8795, allocations: 1.516 MB / 1.026 GB, free: 8.324 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches