Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001784/0.001784, allocations: 105.7 kB / 16.37 MB, free: 6.465 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.002147/0.002147, allocations: 190 kB / 17.31 MB, free: 5.812 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.53/1.53, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 442.6 MB / 0.7165 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001633, allocations: 78.2 kB / 0.8774 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3517, allocations: 153 MB / 1.027 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00271/0.3545, allocations: 0.891 MB / 1.028 GB, free: 1.215 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.3562, allocations: 1.175 MB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.334e-05/0.3563, allocations: 4 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.035e-05/0.3563, allocations: 7.875 kB / 1.029 GB, free: 12 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.3565, allocations: 23.84 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.3571, allocations: 146.7 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.3573, allocations: 175.6 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.3575, allocations: 33.09 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.3576, allocations: 67.77 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.3578, allocations: 71.67 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.3578, allocations: 20 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.278e-05/0.3579, allocations: 31.92 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.3579, allocations: 23.91 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.031e-05/0.358, allocations: 71.7 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002537/0.3583, allocations: 179.4 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3583, allocations: 0 / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3583, allocations: 0 / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.3583, allocations: 0 / 1.03 GB, free: 15.18 MB / 0.8106 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.0007388/0.3591, allocations: 448.8 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3591, allocations: 8.031 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.568e-05/0.3592, allocations: 20.83 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.3597, allocations: 252.1 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.3598, allocations: 8.375 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.3598, allocations: 12.38 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.36, allocations: 90.2 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3601, allocations: 3.938 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.3601, allocations: 4 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3601, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.3603, allocations: 47.95 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007719/0.3611, allocations: 392.4 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.3612, allocations: 46.55 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.452e-05/0.3613, allocations: 24.78 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.3613, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.3616, allocations: 95.48 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.3616, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004378/0.362, allocations: 137.5 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.3621, allocations: 59.72 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.3622, allocations: 135.5 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.3623, allocations: 33.7 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.215e-05/0.3624, allocations: 112 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.3624, allocations: 39.48 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.122e-05/0.3625, allocations: 45.69 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3626, allocations: 322.8 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.3628, allocations: 47.95 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.363, allocations: 131.1 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.3633, allocations: 208.6 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3633, allocations: 4 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004627/0.3638, allocations: 235.3 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/0.3638, allocations: 40.11 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3639, allocations: 4 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3639, allocations: 4 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.364, allocations: 23.92 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.364, allocations: 11.92 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.3642, allocations: 43.81 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.3643, allocations: 11.98 kB / 1.033 GB, free: 11.82 MB / 0.8106 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.0002096/0.3645, allocations: 137.7 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.3645, allocations: 7.906 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.3646, allocations: 12.72 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.3646, allocations: 4 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3646, allocations: 3.938 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3646, allocations: 3.984 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.3652, allocations: 402.3 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3652, allocations: 0 / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.848e-05/0.3653, allocations: 19.92 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3653, allocations: 3.938 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.3653, allocations: 0 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3653, allocations: 0 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3653, allocations: 48 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.3657, allocations: 251.1 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.3658, allocations: 89.05 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.3658, allocations: 3.984 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.905e-05/0.3659, allocations: 11.98 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.366, allocations: 11.98 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.366, allocations: 4 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.363e-05/0.3661, allocations: 109 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.805e-06/0.3661, allocations: 0 / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002891/0.3664, allocations: 43.84 kB / 1.034 GB, free: 10.62 MB / 0.8106 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.0002017/0.3666, allocations: 107.2 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003934/0.367, allocations: 183.1 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.367, allocations: 0.75 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.3671, allocations: 35.98 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.3674, allocations: 19.98 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.368, allocations: 267.9 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.3684, allocations: 0.7084 MB / 1.035 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.684e-05/0.3684, allocations: 12.64 kB / 1.035 GB, free: 9.234 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.3685, allocations: 23.44 kB / 1.035 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.3685, allocations: 0 / 1.035 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of Templates: time 0.005065/0.3736, allocations: 1.632 MB / 1.037 GB, free: 7.594 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches