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.001249/0.001249, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001894/0.001893, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.927/2.927, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003914, allocations: 10.56 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4014, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004584/0.4061, allocations: 3.534 MB / 1.061 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002744/0.4088, allocations: 1.251 MB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004551/0.4093, allocations: 23.88 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.4096, allocations: 91.2 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003465/0.41, allocations: 134.8 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008357/0.4108, allocations: 286.6 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009831/0.4118, allocations: 0.8268 MB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004959/0.4123, allocations: 299.5 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.4126, allocations: 230.8 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.4129, allocations: 242.6 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.413, allocations: 24 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.292e-05/0.4131, allocations: 24 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.4132, allocations: 95.48 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.4133, allocations: 153.3 kB / 1.065 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007794/0.4141, allocations: 0.8066 MB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4141, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.506e-06/0.4141, allocations: 4 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.4142, allocations: 0 / 1.066 GB, free: 13.27 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.001622/0.4158, allocations: 0.9522 MB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4158, allocations: 12.02 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.416, allocations: 83.06 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/0.4168, allocations: 0.5291 MB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.4168, allocations: 45.31 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.417, allocations: 67.86 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.4181, allocations: 0.6114 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.4182, allocations: 4 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.198e-05/0.4182, allocations: 20 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.4183, allocations: 16 kB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009466/0.4192, allocations: 469 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.4224, allocations: 2.016 MB / 1.071 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.4234, allocations: 461.7 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.4238, allocations: 242 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.4239, allocations: 8.422 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006549/0.4246, allocations: 265.4 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 2.425e-06/0.4246, allocations: 0 / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.001622/0.4262, allocations: 0.5922 MB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.4263, allocations: 63.78 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/0.4269, allocations: 450.5 kB / 1.073 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.427, allocations: 33.7 kB / 1.073 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.4273, allocations: 316.3 kB / 1.073 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.4274, allocations: 173.6 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.4275, allocations: 8 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002106/0.4277, allocations: 366.8 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.4281, allocations: 169 kB / 1.074 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004549/0.4285, allocations: 253.8 kB / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.429, allocations: 227.8 kB / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.429, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001272/0.4303, allocations: 0.5702 MB / 1.075 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.4303, allocations: 29.7 kB / 1.075 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.4304, allocations: 4 kB / 1.075 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.4304, allocations: 4 kB / 1.075 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.4309, allocations: 116.1 kB / 1.075 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.4309, allocations: 7.938 kB / 1.075 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.4313, allocations: 67.47 kB / 1.075 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.4313, allocations: 23.95 kB / 1.075 GB, free: 3.762 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.4317, allocations: 218.8 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.4317, allocations: 51.34 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.4319, allocations: 69.53 kB / 1.075 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4319, allocations: 4 kB / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4319, allocations: 0 / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4319, allocations: 3.984 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.4337, allocations: 1.189 MB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.4338, allocations: 4 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.4342, allocations: 99.81 kB / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.004e-06/0.4342, allocations: 8 kB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.4343, allocations: 12 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.4343, allocations: 0 / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4343, allocations: 0 / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.4356, allocations: 0.7719 MB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.4358, allocations: 164.3 kB / 1.077 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.4359, allocations: 15.98 kB / 1.077 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.4362, allocations: 35.98 kB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.59e-05/0.4363, allocations: 36.38 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.4363, allocations: 12 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003979/0.4367, allocations: 310.8 kB / 1.078 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.51e-07/0.4367, allocations: 0 / 1.078 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004476/0.4372, allocations: 143.5 kB / 1.078 GB, free: 0.5352 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001616/0.4373, allocations: 121.5 kB / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000936/0.4383, allocations: 485.5 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4383, allocations: 4 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004196/0.4387, allocations: 218.4 kB / 1.079 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007496/0.4395, allocations: 148.1 kB / 1.079 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002744/0.4422, allocations: 1.625 MB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.4427, allocations: 0.8902 MB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002847/0.443, allocations: 64.58 kB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.4431, allocations: 39.44 kB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of SimCode: time 6.42e-07/0.4431, allocations: 0 / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of Templates: time 0.01108/0.4542, allocations: 5.361 MB / 1.087 GB, free: 7.598 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches