Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001152/0.001152, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007826/0.007826, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.579/1.579, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.036/3.036, allocations: 470.6 MB / 0.7442 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000417/0.0004172, allocations: 18.12 kB / 0.9123 GB, free: 34.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.361, allocations: 161.4 MB / 1.07 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00113/0.3622, allocations: 0.5992 MB / 1.07 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3639, allocations: 1.19 MB / 1.072 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.496e-05/0.3639, allocations: 3.938 kB / 1.072 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.415e-05/0.364, allocations: 3.938 kB / 1.072 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.123e-05/0.3641, allocations: 11.92 kB / 1.072 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.3645, allocations: 134.9 kB / 1.072 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.3647, allocations: 147.7 kB / 1.072 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.3649, allocations: 37.09 kB / 1.072 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.8e-05/0.365, allocations: 51.78 kB / 1.072 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.3651, allocations: 59.73 kB / 1.072 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.3651, allocations: 8 kB / 1.072 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.3652, allocations: 23.98 kB / 1.072 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.3652, allocations: 15.92 kB / 1.072 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.3653, allocations: 77.42 kB / 1.072 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.3656, allocations: 163.7 kB / 1.072 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.3656, allocations: 0 / 1.072 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3656, allocations: 0 / 1.072 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.3656, allocations: 0 / 1.072 GB, free: 8.812 MB / 0.8262 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.0006346/0.3662, allocations: 421 kB / 1.073 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.3663, allocations: 8.031 kB / 1.073 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.3663, allocations: 20.75 kB / 1.073 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005749/0.3669, allocations: 273.7 kB / 1.073 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3669, allocations: 8.359 kB / 1.073 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.367, allocations: 12.38 kB / 1.073 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.3672, allocations: 103.5 kB / 1.073 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3673, allocations: 3.938 kB / 1.073 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3673, allocations: 0 / 1.073 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3673, allocations: 4 kB / 1.073 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.3676, allocations: 55.95 kB / 1.073 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007295/0.3683, allocations: 388.4 kB / 1.074 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.3685, allocations: 50.5 kB / 1.074 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3686, allocations: 24.83 kB / 1.074 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.3686, allocations: 4.125 kB / 1.074 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.3689, allocations: 99.36 kB / 1.074 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3689, allocations: 0 / 1.074 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004568/0.3693, allocations: 149.4 kB / 1.074 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3694, allocations: 59.33 kB / 1.074 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.3695, allocations: 144.8 kB / 1.074 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.3696, allocations: 33.7 kB / 1.074 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.478e-05/0.3697, allocations: 112.1 kB / 1.074 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.3697, allocations: 27.61 kB / 1.074 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.3698, allocations: 21.72 kB / 1.074 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3699, allocations: 322.8 kB / 1.075 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.3701, allocations: 63.89 kB / 1.075 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.3704, allocations: 131.1 kB / 1.075 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.3708, allocations: 216.6 kB / 1.075 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3708, allocations: 8 kB / 1.075 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005397/0.3713, allocations: 251.2 kB / 1.075 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.798e-05/0.3714, allocations: 33.7 kB / 1.075 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3714, allocations: 4 kB / 1.075 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3714, allocations: 4 kB / 1.075 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3716, allocations: 27.92 kB / 1.075 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.3716, allocations: 11.92 kB / 1.075 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.3719, allocations: 51.97 kB / 1.075 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.3719, allocations: 11.98 kB / 1.075 GB, free: 5.391 MB / 0.8262 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.0001302/0.3721, allocations: 131.8 kB / 1.076 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.3721, allocations: 11.81 kB / 1.076 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/0.3721, allocations: 8.719 kB / 1.076 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3721, allocations: 4 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3721, allocations: 7.938 kB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3722, allocations: 7.922 kB / 1.076 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006958/0.3729, allocations: 402.4 kB / 1.076 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3729, allocations: 0 / 1.076 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.373, allocations: 28.39 kB / 1.076 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.373, allocations: 3.938 kB / 1.076 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.373, allocations: 0 / 1.076 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.373, allocations: 4 kB / 1.076 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.373, allocations: 0 / 1.076 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.3735, allocations: 251.2 kB / 1.076 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.3736, allocations: 92.86 kB / 1.076 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.3736, allocations: 8.141 kB / 1.076 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3737, allocations: 8.031 kB / 1.076 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.3738, allocations: 11.97 kB / 1.076 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.3738, allocations: 12 kB / 1.076 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.875e-05/0.3739, allocations: 108.6 kB / 1.076 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3739, allocations: 0 / 1.076 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000294/0.3742, allocations: 24 kB / 1.076 GB, free: 4.191 MB / 0.8262 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.0001885/0.3744, allocations: 116.1 kB / 1.077 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004221/0.3748, allocations: 195.1 kB / 1.077 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3748, allocations: 0 / 1.077 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.375, allocations: 35.98 kB / 1.077 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.3753, allocations: 20.73 kB / 1.077 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005663/0.3758, allocations: 309.6 kB / 1.077 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.3762, allocations: 0.7048 MB / 1.078 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.438e-05/0.3763, allocations: 20.58 kB / 1.078 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.3764, allocations: 15.44 kB / 1.078 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3764, allocations: 0 / 1.078 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of Templates: time 0.004932/0.3813, allocations: 1.518 MB / 1.079 GB, free: 1.211 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches