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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001235/0.001234, allocations: 108 kB / 15.6 MB, free: 132 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.001264/0.001264, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.504/1.504, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.864/2.864, allocations: 472.7 MB / 0.7452 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.2 kB / 0.912 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3933, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005234/0.3986, allocations: 3.717 MB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004171/0.4028, allocations: 1.332 MB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009669/0.4038, allocations: 27.81 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004875/0.4043, allocations: 126.6 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007829/0.4052, allocations: 174.5 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001585/0.4068, allocations: 0.5757 MB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001178/0.408, allocations: 0.9604 MB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005598/0.4085, allocations: 345.6 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004153/0.409, allocations: 362.4 kB / 1.076 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003766/0.4094, allocations: 354.1 kB / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.4095, allocations: 76 kB / 1.076 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.4096, allocations: 80 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.4098, allocations: 183.2 kB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000315/0.4101, allocations: 373.7 kB / 1.077 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008226/0.4109, allocations: 0.8644 MB / 1.077 GB, free: 0.8242 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4109, allocations: 4 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.963e-06/0.4109, allocations: 0 / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.411, allocations: 0 / 1.077 GB, free: 0.8203 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.00208/0.413, allocations: 1.185 MB / 1.079 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.4131, allocations: 12.03 kB / 1.079 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.4133, allocations: 95.81 kB / 1.079 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000937/0.4142, allocations: 0.5909 MB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.4143, allocations: 92.97 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.113e-05/0.4144, allocations: 56.36 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.4155, allocations: 0.6002 MB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.4155, allocations: 0 / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.4156, allocations: 28 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.4156, allocations: 12 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009035/0.4165, allocations: 423.6 kB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.4192, allocations: 2.114 MB / 1.083 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.4204, allocations: 0.4966 MB / 1.083 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.4209, allocations: 220.7 kB / 1.083 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.4209, allocations: 7.984 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007187/0.4216, allocations: 274.2 kB / 1.084 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.4216, allocations: 0 / 1.084 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001538/0.4232, allocations: 0.6216 MB / 1.084 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.886e-05/0.4233, allocations: 84.86 kB / 1.084 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007042/0.424, allocations: 0.6177 MB / 1.085 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.653e-05/0.424, allocations: 33.7 kB / 1.085 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.4243, allocations: 356.9 kB / 1.085 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.4245, allocations: 157.7 kB / 1.085 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.4247, allocations: 98.16 kB / 1.085 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4248, allocations: 326 kB / 1.086 GB, free: 8.051 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004453/0.4253, allocations: 179 kB / 1.086 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005347/0.4258, allocations: 280.2 kB / 1.086 GB, free: 7.562 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/0.4268, allocations: 481.9 kB / 1.087 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4268, allocations: 3.938 kB / 1.087 GB, free: 7.047 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001203/0.428, allocations: 0.5982 MB / 1.087 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.4281, allocations: 33.7 kB / 1.087 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4281, allocations: 8 kB / 1.087 GB, free: 6.391 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.4281, allocations: 4 kB / 1.087 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/0.4286, allocations: 112.1 kB / 1.087 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.4286, allocations: 4 kB / 1.087 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003907/0.429, allocations: 63.5 kB / 1.087 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.466e-05/0.4291, allocations: 16 kB / 1.087 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005539/0.4296, allocations: 314.9 kB / 1.088 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004482/0.4301, allocations: 264.3 kB / 1.088 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000883/0.431, allocations: 457.9 kB / 1.088 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.431, allocations: 0 / 1.088 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001223/0.4322, allocations: 0.5787 MB / 1.089 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.4323, allocations: 35.2 kB / 1.089 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.4323, allocations: 4 kB / 1.089 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.4323, allocations: 4 kB / 1.089 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000451/0.4327, allocations: 103.9 kB / 1.089 GB, free: 4.363 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.4328, allocations: 7.938 kB / 1.089 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.4331, allocations: 51.83 kB / 1.089 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.4332, allocations: 23.98 kB / 1.089 GB, free: 4.281 MB / 0.8419 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002799/0.4335, allocations: 213.5 kB / 1.089 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.4336, allocations: 71.16 kB / 1.09 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001932/0.4338, allocations: 75.22 kB / 1.09 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.085e-05/0.4338, allocations: 15.88 kB / 1.09 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.4338, allocations: 3.938 kB / 1.09 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.4339, allocations: 3.984 kB / 1.09 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008178/0.4347, allocations: 0.6258 MB / 1.09 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4347, allocations: 0 / 1.09 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.4352, allocations: 83.88 kB / 1.09 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.4352, allocations: 4 kB / 1.09 GB, free: 3.133 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.4352, allocations: 8 kB / 1.09 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4352, allocations: 0 / 1.09 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4352, allocations: 0 / 1.09 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.4368, allocations: 0.7289 MB / 1.091 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.4371, allocations: 192 kB / 1.091 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.106e-05/0.4372, allocations: 12 kB / 1.091 GB, free: 2.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003917/0.4376, allocations: 35.95 kB / 1.091 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.4377, allocations: 31.95 kB / 1.091 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.4377, allocations: 16.11 kB / 1.091 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005265/0.4383, allocations: 439 kB / 1.092 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4383, allocations: 0 / 1.092 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006513/0.4389, allocations: 211.4 kB / 1.092 GB, free: 1.449 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 (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.0001858/0.4391, allocations: 115.2 kB / 1.092 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001747/0.4409, allocations: 0.8087 MB / 1.093 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4409, allocations: 0 / 1.093 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.4414, allocations: 207.8 kB / 1.093 GB, free: 296 kB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009643/0.4423, allocations: 214.6 kB / 1.093 GB, free: 88 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.4446, allocations: 1.203 MB / 1.094 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.4451, allocations: 0.914 MB / 1.095 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003817/0.4455, allocations: 93.11 kB / 1.095 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.4456, allocations: 51.44 kB / 1.095 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of SimCode: time 1.072e-06/0.4456, allocations: 4 kB / 1.095 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.01407/0.4597, allocations: 7.565 MB / 1.103 GB, free: 6.293 MB / 0.8575 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