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.0007813/0.0007813, allocations: 91.92 kB / 16.02 MB, free: 80 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.0008652/0.0008653, allocations: 179.8 kB / 16.92 MB, free: 6.652 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.442/1.442, allocations: 223.3 MB / 241 MB, free: 5.266 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.537/2.537, allocations: 390.9 MB / 0.667 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004762/0.0004762, allocations: 8 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8729/0.8734, allocations: 142.4 MB / 0.9557 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003522/0.877, allocations: 3.315 MB / 0.9589 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002662/0.8797, allocations: 1.275 MB / 0.9602 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005199/0.8803, allocations: 25.44 kB / 0.9602 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.8806, allocations: 90.02 kB / 0.9603 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005171/0.8811, allocations: 145.4 kB / 0.9604 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.8821, allocations: 0.5258 MB / 0.9609 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008423/0.883, allocations: 0.8905 MB / 0.9618 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004955/0.8835, allocations: 329.8 kB / 0.9621 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003706/0.8839, allocations: 286.2 kB / 0.9624 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.8842, allocations: 276 kB / 0.9627 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.824e-05/0.8843, allocations: 20.66 kB / 0.9627 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.235e-05/0.8844, allocations: 21.22 kB / 0.9627 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.8845, allocations: 118.3 kB / 0.9628 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002289/0.8847, allocations: 324.9 kB / 0.9631 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.8852, allocations: 0.6221 MB / 0.9637 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8852, allocations: 1.344 kB / 0.9637 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8852, allocations: 4 kB / 0.9637 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.8852, allocations: 0 / 0.9637 GB, free: 1.367 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.001825/0.8871, allocations: 1.053 MB / 0.9648 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.8871, allocations: 9.406 kB / 0.9648 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.8873, allocations: 93.97 kB / 0.9649 GB, free: 492 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009002/0.8882, allocations: 0.5994 MB / 0.9655 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.8883, allocations: 100.3 kB / 0.9655 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.532e-05/0.8884, allocations: 59.19 kB / 0.9656 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.8896, allocations: 0.6168 MB / 0.9662 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.8897, allocations: 0.9688 kB / 0.9662 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.63e-05/0.8897, allocations: 25.34 kB / 0.9662 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.8898, allocations: 13.53 kB / 0.9662 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.8908, allocations: 444 kB / 0.9667 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003059/0.8939, allocations: 2.133 MB / 0.9688 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.8952, allocations: 0.533 MB / 0.9693 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/0.8958, allocations: 227.8 kB / 0.9695 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.8958, allocations: 3.969 kB / 0.9695 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007513/0.8966, allocations: 296.8 kB / 0.9698 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 3.096e-06/0.8966, allocations: 0.9062 kB / 0.9698 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001695/0.8983, allocations: 0.643 MB / 0.9704 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.8984, allocations: 86.02 kB / 0.9705 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008178/0.8992, allocations: 0.6104 MB / 0.9711 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.8993, allocations: 37.61 kB / 0.9711 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002854/0.8995, allocations: 357.2 kB / 0.9715 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.8997, allocations: 160.1 kB / 0.9716 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.8998, allocations: 51.25 kB / 0.9717 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.8999, allocations: 325.7 kB / 0.972 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/0.9004, allocations: 187.8 kB / 0.9722 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005426/0.901, allocations: 289.3 kB / 0.9724 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.902, allocations: 0.492 MB / 0.9729 GB, free: 10.67 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.902, allocations: 5.156 kB / 0.9729 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001356/0.9034, allocations: 0.6102 MB / 0.9735 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.9035, allocations: 194.8 kB / 0.9737 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.9035, allocations: 1.906 kB / 0.9737 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.9036, allocations: 5 kB / 0.9737 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/0.9041, allocations: 113.5 kB / 0.9738 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.9041, allocations: 5.938 kB / 0.9738 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004658/0.9046, allocations: 78.28 kB / 0.9739 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.9046, allocations: 17.78 kB / 0.9739 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.9047, allocations: 9.562 kB / 0.9739 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00108/0.9057, allocations: 0.5047 MB / 0.9744 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.9058, allocations: 3 kB / 0.9744 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.225e-06/0.9058, allocations: 5.438 kB / 0.9744 GB, free: 9.777 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.9062, allocations: 107.7 kB / 0.9745 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.9063, allocations: 9.312 kB / 0.9745 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.9067, allocations: 52.92 kB / 0.9746 GB, free: 9.715 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.9067, allocations: 22.25 kB / 0.9746 GB, free: 9.707 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.0003875/0.9071, allocations: 275.3 kB / 0.9749 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.9072, allocations: 78.25 kB / 0.9749 GB, free: 9.418 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.9074, allocations: 77.47 kB / 0.975 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.9074, allocations: 8.75 kB / 0.975 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.9074, allocations: 0 / 0.975 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.9074, allocations: 8.938 kB / 0.975 GB, free: 9.34 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007486/0.9082, allocations: 0.6141 MB / 0.9756 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.9082, allocations: 7.875 kB / 0.9756 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.9087, allocations: 90.78 kB / 0.9757 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.9087, allocations: 1.156 kB / 0.9757 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.9087, allocations: 7.688 kB / 0.9757 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.9087, allocations: 5.312 kB / 0.9757 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.9087, allocations: 1.406 kB / 0.9757 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.9104, allocations: 0.7544 MB / 0.9765 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.9106, allocations: 197.8 kB / 0.9767 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.973e-05/0.9107, allocations: 14.52 kB / 0.9767 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.9111, allocations: 39.12 kB / 0.9767 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.9113, allocations: 29.67 kB / 0.9767 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.9113, allocations: 22.58 kB / 0.9768 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006009/0.9119, allocations: 432.9 kB / 0.9772 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9119, allocations: 1.406 kB / 0.9772 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008005/0.9127, allocations: 210.3 kB / 0.9774 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.0001748/0.9129, allocations: 114.4 kB / 0.9775 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00189/0.9148, allocations: 0.8138 MB / 0.9783 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.9148, allocations: 0 / 0.9783 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.9154, allocations: 229.8 kB / 0.9785 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.9164, allocations: 182.8 kB / 0.9787 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.919, allocations: 1.503 MB / 0.9801 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.9195, allocations: 0.9144 MB / 0.981 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.9197, allocations: 59.42 kB / 0.9811 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/0.9197, allocations: 0 / 0.9811 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of Templates: time 0.01522/0.9349, allocations: 8.531 MB / 0.9894 GB, free: 12.18 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches