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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001194/0.001194, 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.001323/0.001323, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.514/2.514, allocations: 390.2 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 55.91 kB / 0.8125 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6163/0.6176, allocations: 140.4 MB / 0.9496 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004139/0.6218, allocations: 3.712 MB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002367/0.6242, allocations: 1.32 MB / 0.9545 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004294/0.6247, allocations: 26.44 kB / 0.9545 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.625, allocations: 126.5 kB / 0.9546 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004842/0.6255, allocations: 175.3 kB / 0.9548 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009913/0.6265, allocations: 0.5807 MB / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007876/0.6273, allocations: 0.948 MB / 0.9563 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004357/0.6277, allocations: 353 kB / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003671/0.6281, allocations: 366.9 kB / 0.957 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.6284, allocations: 348.5 kB / 0.9573 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.6285, allocations: 77 kB / 0.9574 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.6286, allocations: 79.06 kB / 0.9575 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.6288, allocations: 185.8 kB / 0.9576 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.629, allocations: 379.4 kB / 0.958 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006097/0.6296, allocations: 0.8662 MB / 0.9588 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.6296, allocations: 0 / 0.9588 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6296, allocations: 0 / 0.9588 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.6296, allocations: 0 / 0.9588 GB, free: 2.047 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.001824/0.6315, allocations: 1.18 MB / 0.96 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.6315, allocations: 9.938 kB / 0.96 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.6317, allocations: 93.03 kB / 0.9601 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007831/0.6325, allocations: 0.5956 MB / 0.9607 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.523e-05/0.6326, allocations: 94.38 kB / 0.9608 GB, free: 484 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.011e-05/0.6327, allocations: 55.3 kB / 0.9608 GB, free: 464 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009655/0.6336, allocations: 0.6075 MB / 0.9614 GB, free: 32 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.6337, allocations: 1.094 kB / 0.9614 GB, free: 32 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.126e-05/0.6337, allocations: 21.47 kB / 0.9614 GB, free: 16 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.6337, allocations: 12.56 kB / 0.9614 GB, free: 16 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009727/0.6347, allocations: 428.2 kB / 0.9619 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002803/0.6375, allocations: 2.111 MB / 0.9639 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.6388, allocations: 0.4986 MB / 0.9644 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/0.6393, allocations: 220.5 kB / 0.9646 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.6394, allocations: 5.062 kB / 0.9646 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009392/0.6403, allocations: 287.5 kB / 0.9649 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 2.976e-06/0.6403, allocations: 0 / 0.9649 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001937/0.6423, allocations: 0.6102 MB / 0.9655 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.6424, allocations: 86.3 kB / 0.9656 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.6436, allocations: 0.6178 MB / 0.9662 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/0.6437, allocations: 41.3 kB / 0.9662 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000364/0.644, allocations: 353.4 kB / 0.9665 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.6442, allocations: 149 kB / 0.9667 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.6444, allocations: 95.12 kB / 0.9668 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.6446, allocations: 327.5 kB / 0.9671 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005585/0.6452, allocations: 184.6 kB / 0.9673 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005816/0.6458, allocations: 277.6 kB / 0.9675 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009814/0.6468, allocations: 481.8 kB / 0.968 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.6468, allocations: 5.344 kB / 0.968 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001304/0.6481, allocations: 0.5966 MB / 0.9686 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.533e-05/0.6482, allocations: 36.62 kB / 0.9686 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.6482, allocations: 6.281 kB / 0.9686 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.6482, allocations: 5 kB / 0.9686 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.6487, allocations: 108.8 kB / 0.9687 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.6487, allocations: 9.219 kB / 0.9687 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.6492, allocations: 68.56 kB / 0.9688 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.6492, allocations: 18.56 kB / 0.9688 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005709/0.6498, allocations: 318.7 kB / 0.9691 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004719/0.6503, allocations: 261.9 kB / 0.9694 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008358/0.6511, allocations: 462.2 kB / 0.9698 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.034e-06/0.6511, allocations: 0 / 0.9698 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001134/0.6523, allocations: 0.5759 MB / 0.9704 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.6523, allocations: 32.55 kB / 0.9704 GB, free: 9.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.6523, allocations: 3.281 kB / 0.9704 GB, free: 9.738 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.6524, allocations: 8.312 kB / 0.9704 GB, free: 9.734 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.6528, allocations: 105.9 kB / 0.9705 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.6528, allocations: 9.656 kB / 0.9705 GB, free: 9.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003826/0.6532, allocations: 48.77 kB / 0.9706 GB, free: 9.672 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.6533, allocations: 22.58 kB / 0.9706 GB, free: 9.664 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 (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.0002349/0.6535, allocations: 212.6 kB / 0.9708 GB, free: 9.457 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.6536, allocations: 74.22 kB / 0.9709 GB, free: 9.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.6538, allocations: 77.56 kB / 0.9709 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.6538, allocations: 9.062 kB / 0.971 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.6538, allocations: 0 / 0.971 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6538, allocations: 3.984 kB / 0.971 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000717/0.6546, allocations: 0.6228 MB / 0.9716 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.6546, allocations: 0 / 0.9716 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.655, allocations: 81.19 kB / 0.9716 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.6551, allocations: 2.594 kB / 0.9716 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.6551, allocations: 10.75 kB / 0.9717 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.6551, allocations: 1.438 kB / 0.9717 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6551, allocations: 5.375 kB / 0.9717 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.6566, allocations: 0.7283 MB / 0.9724 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.6569, allocations: 190 kB / 0.9726 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.876e-05/0.657, allocations: 6.844 kB / 0.9726 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.6574, allocations: 37.73 kB / 0.9726 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.659e-05/0.6575, allocations: 34.05 kB / 0.9726 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.6576, allocations: 22.52 kB / 0.9727 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000523/0.6581, allocations: 432.5 kB / 0.9731 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6581, allocations: 1.188 kB / 0.9731 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006877/0.6588, allocations: 222.3 kB / 0.9733 GB, free: 7.855 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 (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.0001484/0.6589, allocations: 109.8 kB / 0.9734 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0018/0.6608, allocations: 0.8072 MB / 0.9742 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6608, allocations: 0 / 0.9742 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.6612, allocations: 213.8 kB / 0.9744 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000949/0.6622, allocations: 208.8 kB / 0.9746 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.6643, allocations: 1.194 MB / 0.9757 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.6647, allocations: 0.9179 MB / 0.9766 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004017/0.6651, allocations: 93.11 kB / 0.9767 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.6653, allocations: 43.44 kB / 0.9768 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of SimCode: time 8.02e-07/0.6653, allocations: 0 / 0.9768 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.01367/0.679, allocations: 7.574 MB / 0.9842 GB, free: 13.77 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches