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.0009802/0.0009802, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009816/0.0009816, allocations: 177.3 kB / 15.94 MB, free: 228 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.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.81/2.81, allocations: 436.5 MB / 0.7104 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004695, allocations: 12 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8781/0.8785, allocations: 153.6 MB / 1.021 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003413/0.882, allocations: 3.142 MB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.8839, allocations: 1.196 MB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.8842, allocations: 23.88 kB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.189e-05/0.8843, allocations: 51.39 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005578/0.8849, allocations: 187.3 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.8858, allocations: 465.5 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007976/0.8866, allocations: 0.6061 MB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003998/0.887, allocations: 247.1 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.8874, allocations: 298.6 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.8876, allocations: 262.4 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.061e-05/0.8877, allocations: 20 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.8878, allocations: 20 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.8879, allocations: 107.4 kB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.888, allocations: 137.3 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.8885, allocations: 0.6175 MB / 1.028 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8885, allocations: 0 / 1.028 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8885, allocations: 7.938 kB / 1.028 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.8885, allocations: 0 / 1.028 GB, free: 9.672 MB / 0.7794 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.001804/0.8903, allocations: 1.063 MB / 1.029 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.8904, allocations: 15.98 kB / 1.029 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.8905, allocations: 90.88 kB / 1.029 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008752/0.8914, allocations: 0.5746 MB / 1.03 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.8915, allocations: 100.4 kB / 1.03 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.8916, allocations: 59.86 kB / 1.03 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009922/0.8926, allocations: 0.6118 MB / 1.03 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.8927, allocations: 0 / 1.03 GB, free: 7.008 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.8927, allocations: 24 kB / 1.03 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.8927, allocations: 12 kB / 1.03 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008991/0.8936, allocations: 439.6 kB / 1.031 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002656/0.8963, allocations: 2.129 MB / 1.033 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.8976, allocations: 0.5265 MB / 1.033 GB, free: 3.793 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.8977, allocations: 4 kB / 1.033 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007112/0.8984, allocations: 293.9 kB / 1.034 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 1.883e-06/0.8984, allocations: 0 / 1.034 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001444/0.8998, allocations: 0.6423 MB / 1.034 GB, free: 2.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.8999, allocations: 84.86 kB / 1.034 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007059/0.9006, allocations: 0.6099 MB / 1.035 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.9007, allocations: 37.7 kB / 1.035 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/0.901, allocations: 360.8 kB / 1.035 GB, free: 1.723 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.9011, allocations: 149.8 kB / 1.036 GB, free: 1.574 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.478e-05/0.9012, allocations: 12 kB / 1.036 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.9013, allocations: 326 kB / 1.036 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.9017, allocations: 181 kB / 1.036 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.9022, allocations: 293.3 kB / 1.036 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.9027, allocations: 226.5 kB / 1.037 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.9027, allocations: 4 kB / 1.037 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001131/0.9039, allocations: 0.6102 MB / 1.037 GB, free: 15.88 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005124/0.9044, allocations: 0.9946 MB / 1.038 GB, free: 14.81 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.9044, allocations: 4 kB / 1.038 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.9044, allocations: 4 kB / 1.038 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.9049, allocations: 119.8 kB / 1.038 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.9049, allocations: 11.98 kB / 1.038 GB, free: 14.67 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.9053, allocations: 59.52 kB / 1.038 GB, free: 14.61 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.9054, allocations: 23.98 kB / 1.038 GB, free: 14.59 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/0.9054, allocations: 4 kB / 1.038 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009335/0.9063, allocations: 0.5036 MB / 1.039 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.9063, allocations: 4 kB / 1.039 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.9063, allocations: 8.297 kB / 1.039 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004157/0.9068, allocations: 111.8 kB / 1.039 GB, free: 13.96 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.9068, allocations: 8 kB / 1.039 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003185/0.9071, allocations: 59.5 kB / 1.039 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.9071, allocations: 19.94 kB / 1.039 GB, free: 13.87 MB / 0.795 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.0003299/0.9075, allocations: 277 kB / 1.039 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.787e-05/0.9076, allocations: 75.06 kB / 1.039 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.9078, allocations: 83.2 kB / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.9078, allocations: 4 kB / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.9078, allocations: 0 / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.9078, allocations: 4 kB / 1.039 GB, free: 13.42 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.9085, allocations: 0.6218 MB / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.9085, allocations: 0 / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.909, allocations: 91.83 kB / 1.04 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.909, allocations: 4 kB / 1.04 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.909, allocations: 11.98 kB / 1.04 GB, free: 12.65 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.9091, allocations: 4 kB / 1.04 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.9091, allocations: 0 / 1.04 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.9105, allocations: 0.7433 MB / 1.041 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.9107, allocations: 196 kB / 1.041 GB, free: 11.67 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.9108, allocations: 8 kB / 1.041 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003684/0.9112, allocations: 47.97 kB / 1.041 GB, free: 11.62 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.9113, allocations: 35.94 kB / 1.041 GB, free: 11.58 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.9113, allocations: 15.98 kB / 1.041 GB, free: 11.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004654/0.9118, allocations: 419.1 kB / 1.042 GB, free: 11.16 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.91e-07/0.9118, allocations: 0 / 1.042 GB, free: 11.16 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005614/0.9124, allocations: 215.4 kB / 1.042 GB, free: 10.95 MB / 0.795 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.0001512/0.9125, allocations: 115.1 kB / 1.042 GB, free: 10.83 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001542/0.9141, allocations: 0.8012 MB / 1.043 GB, free: 10 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.9141, allocations: 4.688 kB / 1.043 GB, free: 10 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.9145, allocations: 235.2 kB / 1.043 GB, free: 9.77 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007742/0.9153, allocations: 178.8 kB / 1.043 GB, free: 9.594 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.9173, allocations: 1.384 MB / 1.044 GB, free: 8.176 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.9177, allocations: 0.9299 MB / 1.045 GB, free: 7.215 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003364/0.918, allocations: 93.11 kB / 1.045 GB, free: 7.125 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.9182, allocations: 47.44 kB / 1.045 GB, free: 7.078 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.9182, allocations: 4 kB / 1.045 GB, free: 7.074 MB / 0.795 GB Notification: Performance of Templates: time 0.01205/0.9303, allocations: 6.87 MB / 1.052 GB, free: 292 kB / 0.795 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","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches