Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009401/0.0009402, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001113/0.001113, allocations: 168.7 kB / 15.95 MB, free: 204 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.534/1.534, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.844/2.844, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004047/0.0004048, allocations: 10.31 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4258/0.4263, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003981/0.4303, allocations: 3.129 MB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002491/0.4328, allocations: 1.262 MB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003644/0.4332, allocations: 27.88 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002788/0.4335, allocations: 91.09 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004704/0.434, allocations: 135 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.4351, allocations: 470.1 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009846/0.4361, allocations: 0.816 MB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004993/0.4366, allocations: 255.1 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003885/0.437, allocations: 274.5 kB / 1.064 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.4373, allocations: 258.3 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.523e-05/0.4374, allocations: 20 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.443e-05/0.4375, allocations: 20 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.4376, allocations: 115.4 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.4378, allocations: 137.3 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.4384, allocations: 0.6159 MB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.423e-06/0.4384, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.857e-06/0.4384, allocations: 4 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.4385, allocations: 0 / 1.065 GB, free: 13.73 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.0019/0.4404, allocations: 1.067 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.4404, allocations: 15.91 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.4406, allocations: 94.88 kB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009102/0.4415, allocations: 0.5629 MB / 1.067 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.4416, allocations: 108.3 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.731e-05/0.4417, allocations: 56 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.4428, allocations: 0.6002 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.4428, allocations: 0 / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.088e-05/0.4429, allocations: 31.92 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.4429, allocations: 16 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009033/0.4438, allocations: 431.7 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.4466, allocations: 2.137 MB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.4478, allocations: 0.5146 MB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004368/0.4482, allocations: 224.8 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.4483, allocations: 8 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006761/0.449, allocations: 286.2 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.449, allocations: 0 / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001395/0.4504, allocations: 0.6372 MB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.4504, allocations: 92.84 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007428/0.4512, allocations: 0.6062 MB / 1.073 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.4513, allocations: 38.8 kB / 1.073 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/0.4516, allocations: 360.7 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.4517, allocations: 153.8 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.4518, allocations: 12 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.4519, allocations: 326 kB / 1.074 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.4523, allocations: 181 kB / 1.074 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004668/0.4528, allocations: 288.2 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.4533, allocations: 234.4 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4533, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001139/0.4544, allocations: 0.6216 MB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.4546, allocations: 183.3 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4546, allocations: 4 kB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.4546, allocations: 4 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004553/0.4551, allocations: 115.8 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.051e-05/0.4551, allocations: 11.97 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.4555, allocations: 63.52 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.4556, allocations: 23.98 kB / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.4556, allocations: 8 kB / 1.075 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000958/0.4566, allocations: 0.496 MB / 1.076 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.4566, allocations: 4 kB / 1.076 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.4566, allocations: 11.89 kB / 1.076 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004181/0.457, allocations: 107.8 kB / 1.076 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.457, allocations: 4 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003263/0.4574, allocations: 71.66 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.4574, allocations: 20 kB / 1.076 GB, free: 2.543 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0003216/0.4577, allocations: 270.7 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.4578, allocations: 67.16 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.458, allocations: 83.2 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.458, allocations: 7.953 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4581, allocations: 0 / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.4581, allocations: 4 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007324/0.4588, allocations: 0.6335 MB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4588, allocations: 0 / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004277/0.4593, allocations: 87.89 kB / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.4593, allocations: 0 / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.4593, allocations: 11.98 kB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4593, allocations: 4 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4593, allocations: 3.953 kB / 1.077 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.4608, allocations: 0.7448 MB / 1.078 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.461, allocations: 192.1 kB / 1.078 GB, free: 356 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.906e-05/0.4611, allocations: 12 kB / 1.078 GB, free: 344 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.4615, allocations: 47.95 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.4616, allocations: 31.91 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.4616, allocations: 23.92 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005798/0.4622, allocations: 423.1 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4622, allocations: 0 / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007009/0.4629, allocations: 219.3 kB / 1.079 GB, free: 15.61 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001759/0.4631, allocations: 111.2 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00161/0.4647, allocations: 0.8051 MB / 1.08 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.4648, allocations: 4 kB / 1.08 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004693/0.4652, allocations: 227.5 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000877/0.4661, allocations: 182.3 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.4685, allocations: 1.384 MB / 1.081 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005264/0.4691, allocations: 0.9144 MB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004236/0.4695, allocations: 93.11 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.4697, allocations: 43.44 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.4697, allocations: 0 / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.01453/0.4842, allocations: 6.881 MB / 1.089 GB, free: 4.977 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches