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.01027/0.01027, allocations: 99.16 kB / 15.73 MB, free: 6.008 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.002179/0.002179, allocations: 196.2 kB / 16.67 MB, free: 5.934 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.573/2.573, allocations: 437 MB / 0.7105 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 71.91 kB / 1.019 GB, free: 9.355 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065/1.067, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002138/1.069, allocations: 0.8838 MB / 1.168 GB, free: 2.953 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00154/1.07, allocations: 1.181 MB / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.229e-05/1.07, allocations: 0 / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.138e-05/1.071, allocations: 7.875 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.304e-05/1.071, allocations: 27.8 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/1.071, allocations: 154.4 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002183/1.071, allocations: 175.6 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/1.072, allocations: 33.11 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/1.072, allocations: 63.83 kB / 1.169 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/1.072, allocations: 67.73 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/1.072, allocations: 16 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.868e-05/1.072, allocations: 31.97 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.927e-05/1.072, allocations: 19.92 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.189e-05/1.072, allocations: 71.7 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002355/1.072, allocations: 167.9 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/1.072, allocations: 0 / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.934e-06/1.072, allocations: 4 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.837e-06/1.072, allocations: 0 / 1.169 GB, free: 0.9375 MB / 0.8887 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.0006877/1.073, allocations: 464.5 kB / 1.17 GB, free: 436 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.073, allocations: 8.625 kB / 1.17 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/1.073, allocations: 16.84 kB / 1.17 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005302/1.074, allocations: 260.2 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/1.074, allocations: 4.375 kB / 1.17 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/1.074, allocations: 16.38 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/1.074, allocations: 86.2 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/1.074, allocations: 208 / 1.17 GB, free: 16 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/1.074, allocations: 7.938 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/1.074, allocations: 4 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/1.074, allocations: 50.77 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007137/1.075, allocations: 400.4 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/1.075, allocations: 34.56 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.937e-05/1.075, allocations: 24.83 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/1.075, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/1.075, allocations: 99.42 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/1.075, allocations: 0 / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004142/1.076, allocations: 137.5 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/1.076, allocations: 55.41 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/1.076, allocations: 148.3 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/1.076, allocations: 33.7 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.725e-05/1.076, allocations: 112.1 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/1.076, allocations: 31.78 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/1.076, allocations: 41.7 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001226/1.076, allocations: 326.8 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/1.077, allocations: 43.95 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/1.077, allocations: 139 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/1.077, allocations: 196.7 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/1.077, allocations: 7.938 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004643/1.078, allocations: 243 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/1.078, allocations: 37.69 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.078, allocations: 4.375 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/1.078, allocations: 4 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/1.078, allocations: 23.92 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/1.078, allocations: 7.938 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/1.078, allocations: 52.2 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/1.078, allocations: 8 kB / 1.172 GB, free: 13.54 MB / 0.9044 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.00011/1.078, allocations: 137.7 kB / 1.173 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/1.078, allocations: 11.91 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/1.078, allocations: 12.72 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/1.078, allocations: 4 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/1.078, allocations: 3.938 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.078, allocations: 4 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005421/1.079, allocations: 394.4 kB / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.079, allocations: 0 / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.95e-05/1.079, allocations: 11.98 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/1.079, allocations: 11.94 kB / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/1.079, allocations: 0 / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/1.079, allocations: 0 / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.079, allocations: 4 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/1.079, allocations: 243.3 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.265e-05/1.079, allocations: 85.06 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/1.079, allocations: 3.938 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.119e-05/1.08, allocations: 11.97 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/1.08, allocations: 15.98 kB / 1.173 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/1.08, allocations: 4 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.457e-05/1.08, allocations: 103.3 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.08, allocations: 0 / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003078/1.08, allocations: 39.88 kB / 1.174 GB, free: 12.36 MB / 0.9044 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.0001831/1.08, allocations: 104.2 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004026/1.081, allocations: 183.5 kB / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.081, allocations: 0 / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/1.081, allocations: 43.84 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/1.081, allocations: 22.39 kB / 1.174 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/1.082, allocations: 261.2 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/1.082, allocations: 0.7083 MB / 1.175 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.062e-05/1.082, allocations: 16.64 kB / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.873e-05/1.082, allocations: 19.44 kB / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/1.082, allocations: 0 / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of Templates: time 0.004649/1.087, allocations: 1.656 MB / 1.176 GB, free: 9.32 MB / 0.9044 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