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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001132/0.001132, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001602/0.001603, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 223.3 MB / 240 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.791/2.791, allocations: 437.7 MB / 0.7117 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.000448, allocations: 16 kB / 0.8722 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7678/0.7682, allocations: 153.8 MB / 1.022 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001494/0.7698, allocations: 0.5844 MB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001822/0.7716, allocations: 1.152 MB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.953e-05/0.7717, allocations: 4 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.619e-05/0.7717, allocations: 3.938 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.7719, allocations: 15.86 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007014/0.7726, allocations: 139.2 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.7728, allocations: 139.7 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.773, allocations: 41.02 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.7731, allocations: 47.84 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.7732, allocations: 55.8 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.7732, allocations: 8 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.474e-05/0.7733, allocations: 19.92 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.668e-05/0.7733, allocations: 11.98 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.112e-05/0.7734, allocations: 45.64 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.7736, allocations: 109.7 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7736, allocations: 0 / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7736, allocations: 4 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.7736, allocations: 0 / 1.025 GB, free: 13.69 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.0006515/0.7743, allocations: 440.6 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.7743, allocations: 16.5 kB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.279e-05/0.7744, allocations: 19.75 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005246/0.7749, allocations: 252.6 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.775, allocations: 11.95 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.775, allocations: 19.98 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/0.7752, allocations: 93.59 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.7753, allocations: 0 / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.7753, allocations: 3.984 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.7753, allocations: 4 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.7755, allocations: 62.22 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.7762, allocations: 388.5 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.7763, allocations: 38.5 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.647e-05/0.7764, allocations: 28.97 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.7764, allocations: 4 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.7767, allocations: 103.3 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 4.037e-06/0.7767, allocations: 0 / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004223/0.7771, allocations: 153.3 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.7772, allocations: 59.34 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.7773, allocations: 143.3 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.7773, allocations: 33.7 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.7774, allocations: 111.9 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.7775, allocations: 23.66 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.558e-05/0.7775, allocations: 8 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.7776, allocations: 318.8 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.7778, allocations: 55.95 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.778, allocations: 133.6 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.7781, allocations: 93.61 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7781, allocations: 4 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004475/0.7786, allocations: 247.2 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.7786, allocations: 37.7 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.7787, allocations: 7.953 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.7787, allocations: 4 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.7788, allocations: 31.95 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.7788, allocations: 4.375 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.779, allocations: 51.95 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.7791, allocations: 15.98 kB / 1.028 GB, free: 10.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 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,sampleTrigger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.7792, allocations: 129.7 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.7792, allocations: 19.69 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.7792, allocations: 16.7 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.7792, allocations: 3.953 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.7793, allocations: 4 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7793, allocations: 0 / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.7798, allocations: 398.5 kB / 1.028 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.7798, allocations: 3.984 kB / 1.028 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.264e-05/0.7799, allocations: 23.94 kB / 1.028 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.7799, allocations: 3.953 kB / 1.028 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.7799, allocations: 7.984 kB / 1.028 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.7799, allocations: 0 / 1.028 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.78, allocations: 0 / 1.028 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004002/0.7804, allocations: 247.2 kB / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.7804, allocations: 89.05 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.7804, allocations: 7.953 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.238e-05/0.7805, allocations: 8 kB / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.7806, allocations: 7.984 kB / 1.029 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.7806, allocations: 15.98 kB / 1.029 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.096e-05/0.7807, allocations: 101.3 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7807, allocations: 0 / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002898/0.781, allocations: 31.94 kB / 1.029 GB, free: 9.258 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 (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.0001891/0.7812, allocations: 115.2 kB / 1.029 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004037/0.7816, allocations: 195.2 kB / 1.029 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.7816, allocations: 0 / 1.029 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.7817, allocations: 48.03 kB / 1.029 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.782, allocations: 28.53 kB / 1.029 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005468/0.7826, allocations: 293.7 kB / 1.029 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.7829, allocations: 0.7126 MB / 1.03 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.445e-05/0.783, allocations: 16.64 kB / 1.03 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.783, allocations: 11.44 kB / 1.03 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of SimCode: time 5.1e-07/0.783, allocations: 0 / 1.03 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of Templates: time 0.005045/0.7881, allocations: 1.462 MB / 1.031 GB, free: 6.332 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=480 -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