Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001249/0.001249, allocations: 99.86 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.001609/0.001609, 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.313/1.313, 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 9.1.2-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 390.2 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003464, allocations: 12 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6939/0.6942, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.002999/0.6973, allocations: 3.135 MB / 0.9566 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002053/0.6994, allocations: 1.208 MB / 0.9577 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.6998, allocations: 27.34 kB / 0.9578 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.486e-05/0.6999, allocations: 47.39 kB / 0.9578 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.7004, allocations: 193.2 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009126/0.7013, allocations: 460.1 kB / 0.9584 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006847/0.702, allocations: 0.6064 MB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000345/0.7024, allocations: 257.9 kB / 0.9593 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.7027, allocations: 291.2 kB / 0.9595 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.703, allocations: 263.5 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.942e-05/0.703, allocations: 20.66 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.34e-05/0.7031, allocations: 21.78 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.866e-05/0.7032, allocations: 105.7 kB / 0.9599 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.258e-05/0.7033, allocations: 141.6 kB / 0.9601 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004475/0.7038, allocations: 0.609 MB / 0.9607 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.7038, allocations: 4 kB / 0.9607 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7038, allocations: 0 / 0.9607 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.7038, allocations: 0.75 kB / 0.9607 GB, free: 2.516 MB / 0.7169 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.001691/0.7055, allocations: 1.064 MB / 0.9617 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.7055, allocations: 8.625 kB / 0.9617 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.7057, allocations: 96.73 kB / 0.9618 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008519/0.7065, allocations: 0.5806 MB / 0.9624 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-05/0.7067, allocations: 95.16 kB / 0.9625 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.7067, allocations: 55.03 kB / 0.9625 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009815/0.7077, allocations: 0.6046 MB / 0.9631 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.7078, allocations: 1.062 kB / 0.9631 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.7078, allocations: 21.69 kB / 0.9631 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.7078, allocations: 12.38 kB / 0.9631 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009147/0.7088, allocations: 445.5 kB / 0.9636 GB, free: 412 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002697/0.7115, allocations: 2.14 MB / 0.9657 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.7127, allocations: 0.5235 MB / 0.9662 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.7128, allocations: 5.906 kB / 0.9662 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006467/0.7134, allocations: 289.6 kB / 0.9665 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.7134, allocations: 0 / 0.9665 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001479/0.7149, allocations: 0.6397 MB / 0.9671 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.715, allocations: 90.2 kB / 0.9672 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007197/0.7157, allocations: 0.612 MB / 0.9678 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.7158, allocations: 36.83 kB / 0.9678 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.7161, allocations: 358.1 kB / 0.9681 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.7162, allocations: 160.7 kB / 0.9683 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.7162, allocations: 10.66 kB / 0.9683 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.7164, allocations: 325.7 kB / 0.9686 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004545/0.7168, allocations: 186.2 kB / 0.9688 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/0.7173, allocations: 279.9 kB / 0.9691 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005021/0.7178, allocations: 234.5 kB / 0.9693 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.7179, allocations: 0 / 0.9693 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001223/0.7191, allocations: 0.6139 MB / 0.9699 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004143/0.7195, allocations: 0.9871 MB / 0.9708 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.7195, allocations: 2.625 kB / 0.9708 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.7196, allocations: 4.031 kB / 0.9709 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004986/0.7201, allocations: 118.2 kB / 0.971 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.7201, allocations: 5.312 kB / 0.971 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.7205, allocations: 70.59 kB / 0.971 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-05/0.7206, allocations: 25.56 kB / 0.9711 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/0.7206, allocations: 4.062 kB / 0.9711 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009877/0.7216, allocations: 0.4965 MB / 0.9716 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.7216, allocations: 7.438 kB / 0.9716 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.857e-06/0.7216, allocations: 9.719 kB / 0.9716 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.7221, allocations: 107.1 kB / 0.9717 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.7221, allocations: 5.688 kB / 0.9717 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/0.7224, allocations: 63.97 kB / 0.9717 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.7225, allocations: 18.38 kB / 0.9718 GB, free: 10.38 MB / 0.7325 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.0003208/0.7228, allocations: 279.6 kB / 0.972 GB, free: 10.13 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.7229, allocations: 76.55 kB / 0.9721 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.7231, allocations: 82.23 kB / 0.9722 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.7231, allocations: 4.906 kB / 0.9722 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.7231, allocations: 0 / 0.9722 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.7231, allocations: 1.031 kB / 0.9722 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007191/0.7238, allocations: 0.622 MB / 0.9728 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.7239, allocations: 0 / 0.9728 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/0.7243, allocations: 85.86 kB / 0.9729 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.7243, allocations: 6.172 kB / 0.9729 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.7244, allocations: 10.94 kB / 0.9729 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.7244, allocations: 5.953 kB / 0.9729 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7244, allocations: 0 / 0.9729 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.7259, allocations: 0.7446 MB / 0.9736 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.7261, allocations: 197.8 kB / 0.9738 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.7262, allocations: 14.39 kB / 0.9738 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.7266, allocations: 46.41 kB / 0.9739 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.199e-05/0.7267, allocations: 34.41 kB / 0.9739 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.7268, allocations: 17.98 kB / 0.9739 GB, free: 8.828 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004909/0.7273, allocations: 419.5 kB / 0.9743 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7273, allocations: 0 / 0.9743 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006371/0.7279, allocations: 215.5 kB / 0.9745 GB, free: 8.535 MB / 0.7325 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.00015/0.7281, allocations: 117.6 kB / 0.9746 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001523/0.7296, allocations: 0.7979 MB / 0.9754 GB, free: 8.012 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.7296, allocations: 128 / 0.9754 GB, free: 8.012 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004593/0.7301, allocations: 231.8 kB / 0.9756 GB, free: 7.91 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007798/0.7309, allocations: 168.2 kB / 0.9758 GB, free: 7.828 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.733, allocations: 1.391 MB / 0.9771 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.7334, allocations: 0.9304 MB / 0.9781 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003815/0.7338, allocations: 97.23 kB / 0.9782 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.734, allocations: 49.03 kB / 0.9782 GB, free: 6 MB / 0.7325 GB Notification: Performance of SimCode: time 5.41e-07/0.734, allocations: 0 / 0.9782 GB, free: 6 MB / 0.7325 GB Notification: Performance of Templates: time 0.01284/0.7468, allocations: 6.878 MB / 0.9849 GB, free: 15.41 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches