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.001496/0.001496, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.001643/0.001643, allocations: 187 kB / 17.34 MB, free: 5.742 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.454/1.454, allocations: 222.9 MB / 241 MB, free: 15.14 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.451/2.451, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 67.89 kB / 1.019 GB, free: 9.34 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046/1.048, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002185/1.05, allocations: 0.8826 MB / 1.168 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001695/1.052, allocations: 1.181 MB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.61e-05/1.052, allocations: 4 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.788e-05/1.052, allocations: 11.86 kB / 1.169 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001096/1.052, allocations: 15.8 kB / 1.169 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/1.053, allocations: 150.5 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002536/1.053, allocations: 175.6 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/1.053, allocations: 33.11 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/1.053, allocations: 67.83 kB / 1.17 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/1.054, allocations: 75.66 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/1.054, allocations: 16 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.329e-05/1.054, allocations: 27.92 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/1.054, allocations: 27.92 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/1.054, allocations: 67.7 kB / 1.17 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/1.054, allocations: 167.3 kB / 1.17 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.054, allocations: 0 / 1.17 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.804e-06/1.054, allocations: 0 / 1.17 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.115e-06/1.054, allocations: 0 / 1.17 GB, free: 0.9023 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.0007858/1.055, allocations: 462.6 kB / 1.171 GB, free: 404 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.055, allocations: 12.92 kB / 1.171 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.18e-05/1.055, allocations: 16.75 kB / 1.171 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005723/1.056, allocations: 250.5 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/1.056, allocations: 12.38 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/1.056, allocations: 12.38 kB / 1.171 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/1.056, allocations: 90.14 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/1.056, allocations: 3.938 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/1.056, allocations: 4 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/1.056, allocations: 7.984 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/1.056, allocations: 43.97 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000746/1.057, allocations: 392.4 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/1.057, allocations: 34.55 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/1.057, allocations: 32.91 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/1.057, allocations: 4 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/1.057, allocations: 99.28 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.973e-06/1.057, allocations: 0 / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004316/1.058, allocations: 133.5 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/1.058, allocations: 59.34 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/1.058, allocations: 141.7 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/1.058, allocations: 37.69 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/1.058, allocations: 100 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/1.058, allocations: 31.69 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.337e-05/1.058, allocations: 49.69 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001091/1.058, allocations: 322.8 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/1.059, allocations: 51.91 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/1.059, allocations: 131.1 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/1.059, allocations: 200.6 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.059, allocations: 0 / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004949/1.06, allocations: 246.9 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/1.06, allocations: 33.7 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.06, allocations: 0 / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/1.06, allocations: 4.375 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/1.06, allocations: 35.95 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.06, allocations: 11.92 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/1.06, allocations: 43.8 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/1.06, allocations: 19.92 kB / 1.173 GB, free: 13.51 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.0001136/1.06, allocations: 125.8 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/1.06, allocations: 7.906 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.216e-05/1.06, allocations: 20.7 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/1.06, allocations: 0 / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/1.06, allocations: 3.938 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/1.06, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005388/1.061, allocations: 390.8 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/1.061, allocations: 8.094 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.38e-05/1.061, allocations: 19.86 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/1.061, allocations: 3.938 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/1.061, allocations: 11.98 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/1.061, allocations: 4 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.061, allocations: 0 / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/1.061, allocations: 231.3 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/1.062, allocations: 92.89 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/1.062, allocations: 12 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/1.062, allocations: 4 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/1.062, allocations: 7.984 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/1.062, allocations: 8 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.314e-05/1.062, allocations: 101.5 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/1.062, allocations: 0 / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003052/1.062, allocations: 31.94 kB / 1.174 GB, free: 12.35 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.0002004/1.062, allocations: 112.9 kB / 1.174 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003943/1.063, allocations: 187.1 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.063, allocations: 4 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/1.063, allocations: 35.97 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/1.063, allocations: 23.23 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006111/1.064, allocations: 298.8 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/1.064, allocations: 0.7083 MB / 1.176 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.759e-05/1.064, allocations: 15.44 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of SimCode: time 4.21e-07/1.064, allocations: 0 / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of Templates: time 0.003752/1.068, allocations: 1.734 MB / 1.177 GB, free: 9.184 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/jenkins1/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