Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009678/0.0009679, allocations: 98.09 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001455, allocations: 182.7 kB / 16.92 MB, free: 6.918 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.464/1.464, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.809/2.809, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003907, allocations: 10.72 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3484, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005181/0.3537, allocations: 3.726 MB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003219/0.3569, allocations: 1.278 MB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008199/0.3578, allocations: 23.88 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004476/0.3582, allocations: 95.16 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007676/0.359, allocations: 150.8 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.3602, allocations: 378.1 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001309/0.3615, allocations: 0.8812 MB / 1.066 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007858/0.3623, allocations: 414.1 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004576/0.3628, allocations: 246.6 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004658/0.3632, allocations: 246.5 kB / 1.067 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.3634, allocations: 20 kB / 1.067 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.3635, allocations: 24 kB / 1.067 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3636, allocations: 107.3 kB / 1.067 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003506/0.364, allocations: 331.8 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007653/0.3647, allocations: 0.8066 MB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3647, allocations: 0 / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3648, allocations: 0 / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.268e-06/0.3648, allocations: 0 / 1.068 GB, free: 12.2 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001686/0.3665, allocations: 0.9563 MB / 1.069 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3665, allocations: 11.97 kB / 1.069 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.3667, allocations: 84 kB / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008061/0.3675, allocations: 0.5495 MB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.3675, allocations: 45.69 kB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3677, allocations: 56.38 kB / 1.069 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.3688, allocations: 0.6156 MB / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.3688, allocations: 4 kB / 1.07 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.3689, allocations: 24 kB / 1.07 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.3689, allocations: 15.94 kB / 1.07 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009945/0.3699, allocations: 473 kB / 1.071 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.3728, allocations: 2.02 MB / 1.073 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.3738, allocations: 453.7 kB / 1.073 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/0.3742, allocations: 246 kB / 1.073 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.3743, allocations: 12.36 kB / 1.073 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006036/0.3749, allocations: 277.2 kB / 1.073 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.3749, allocations: 0 / 1.073 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.00134/0.3763, allocations: 0.5929 MB / 1.074 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3763, allocations: 67.78 kB / 1.074 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005083/0.3768, allocations: 442 kB / 1.075 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.3769, allocations: 37.7 kB / 1.075 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.3771, allocations: 328.3 kB / 1.075 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.3773, allocations: 169.5 kB / 1.075 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.3774, allocations: 49.69 kB / 1.075 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3776, allocations: 366.8 kB / 1.075 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.3779, allocations: 173 kB / 1.076 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.3784, allocations: 253.8 kB / 1.076 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008503/0.3793, allocations: 464 kB / 1.076 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3793, allocations: 0 / 1.076 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001067/0.3803, allocations: 0.5741 MB / 1.077 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.3804, allocations: 33.64 kB / 1.077 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3804, allocations: 4 kB / 1.077 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.3804, allocations: 4 kB / 1.077 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.3809, allocations: 120.1 kB / 1.077 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.3809, allocations: 4 kB / 1.077 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.3813, allocations: 71.5 kB / 1.077 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/0.3814, allocations: 19.98 kB / 1.077 GB, free: 2.336 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0003007/0.3817, allocations: 216 kB / 1.077 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/0.3817, allocations: 55.28 kB / 1.077 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.3819, allocations: 61.58 kB / 1.077 GB, free: 2.004 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3819, allocations: 8 kB / 1.077 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.3819, allocations: 4 kB / 1.077 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.3819, allocations: 0 / 1.077 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.3837, allocations: 1.193 MB / 1.079 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.3837, allocations: 0 / 1.079 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004524/0.3842, allocations: 99.88 kB / 1.079 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.3842, allocations: 4 kB / 1.079 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.3843, allocations: 8 kB / 1.079 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.3843, allocations: 7.938 kB / 1.079 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3843, allocations: 3.938 kB / 1.079 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3857, allocations: 0.7796 MB / 1.079 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.3859, allocations: 172.4 kB / 1.08 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.3859, allocations: 8 kB / 1.08 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.3863, allocations: 39.91 kB / 1.08 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.009e-05/0.3864, allocations: 36.39 kB / 1.08 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.779e-05/0.3864, allocations: 12 kB / 1.08 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003361/0.3867, allocations: 310.9 kB / 1.08 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3867, allocations: 0 / 1.08 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004459/0.3872, allocations: 143.4 kB / 1.08 GB, free: 15.1 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001496/0.3873, allocations: 115.2 kB / 1.08 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009351/0.3883, allocations: 493.5 kB / 1.081 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3883, allocations: 4 kB / 1.081 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.3887, allocations: 218.4 kB / 1.081 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.3895, allocations: 143.3 kB / 1.081 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.3924, allocations: 1.717 MB / 1.083 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.3929, allocations: 0.8902 MB / 1.084 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.3931, allocations: 47.44 kB / 1.084 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.3931, allocations: 0 / 1.084 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of Templates: time 0.01087/0.404, allocations: 7.491 MB / 1.091 GB, free: 3.945 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches