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.001697/0.001697, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001604/0.001604, allocations: 192.4 kB / 16.14 MB, free: 6.711 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.425/1.425, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.483/2.483, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8754/0.8769, allocations: 140.3 MB / 0.9489 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005849/0.8828, allocations: 3.725 MB / 0.9525 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003284/0.8861, allocations: 1.294 MB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008171/0.8869, allocations: 25.16 kB / 0.9538 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.8873, allocations: 91.3 kB / 0.9539 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005402/0.8879, allocations: 141.8 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.8891, allocations: 0.5319 MB / 0.9546 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007991/0.8899, allocations: 0.8966 MB / 0.9555 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005249/0.8904, allocations: 340.2 kB / 0.9558 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.8908, allocations: 322.6 kB / 0.9561 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.8911, allocations: 328.8 kB / 0.9564 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.492e-05/0.8912, allocations: 36.59 kB / 0.9564 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.741e-05/0.8913, allocations: 37.03 kB / 0.9565 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.8914, allocations: 141.7 kB / 0.9566 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002699/0.8917, allocations: 336.5 kB / 0.9569 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000679/0.8924, allocations: 0.8176 MB / 0.9577 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.8924, allocations: 0 / 0.9577 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.002e-06/0.8924, allocations: 3.938 kB / 0.9577 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.8924, allocations: 5.375 kB / 0.9577 GB, free: 2.25 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.002061/0.8945, allocations: 1.175 MB / 0.9589 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.8946, allocations: 8.906 kB / 0.9589 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.8947, allocations: 95.06 kB / 0.959 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008565/0.8956, allocations: 0.5978 MB / 0.9596 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.8957, allocations: 102.8 kB / 0.9597 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.8958, allocations: 50.81 kB / 0.9597 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.8969, allocations: 0.6004 MB / 0.9603 GB, free: 248 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.8969, allocations: 0.7188 kB / 0.9603 GB, free: 248 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.897, allocations: 26.14 kB / 0.9603 GB, free: 228 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.897, allocations: 12.31 kB / 0.9603 GB, free: 228 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009584/0.8979, allocations: 427 kB / 0.9607 GB, free: 20 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.9009, allocations: 2.116 MB / 0.9628 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.9022, allocations: 0.5009 MB / 0.9633 GB, free: 14 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.9027, allocations: 215.6 kB / 0.9635 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.9027, allocations: 5.375 kB / 0.9635 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007542/0.9035, allocations: 290 kB / 0.9638 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 2.434e-06/0.9035, allocations: 0 / 0.9638 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001542/0.905, allocations: 0.608 MB / 0.9644 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/0.9051, allocations: 90.06 kB / 0.9645 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007894/0.9059, allocations: 0.61 MB / 0.9651 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.906, allocations: 40.77 kB / 0.9651 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.9063, allocations: 354.1 kB / 0.9654 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.9064, allocations: 152.2 kB / 0.9656 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.9066, allocations: 104.1 kB / 0.9657 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.9067, allocations: 327.2 kB / 0.966 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005037/0.9072, allocations: 180.4 kB / 0.9662 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005397/0.9078, allocations: 281.6 kB / 0.9664 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009849/0.9088, allocations: 473.9 kB / 0.9669 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.9088, allocations: 5.125 kB / 0.9669 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00128/0.9101, allocations: 0.6003 MB / 0.9675 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.9101, allocations: 32.8 kB / 0.9675 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.9101, allocations: 2.188 kB / 0.9675 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.9102, allocations: 5.812 kB / 0.9675 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.9107, allocations: 107.9 kB / 0.9676 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.9107, allocations: 9.562 kB / 0.9676 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.9111, allocations: 68.38 kB / 0.9677 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.9112, allocations: 18.19 kB / 0.9677 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005937/0.9118, allocations: 315.3 kB / 0.968 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004713/0.9122, allocations: 269.7 kB / 0.9683 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008496/0.9131, allocations: 457.7 kB / 0.9687 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.256e-06/0.9131, allocations: 1.312 kB / 0.9687 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001168/0.9143, allocations: 0.5754 MB / 0.9693 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.9143, allocations: 32.36 kB / 0.9693 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.9143, allocations: 4.031 kB / 0.9693 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.202e-06/0.9144, allocations: 3.625 kB / 0.9693 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.9148, allocations: 106.2 kB / 0.9694 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.9148, allocations: 5.156 kB / 0.9694 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003798/0.9152, allocations: 56.56 kB / 0.9695 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.9153, allocations: 22.81 kB / 0.9695 GB, free: 9.879 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.0002114/0.9155, allocations: 214 kB / 0.9697 GB, free: 9.672 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.9156, allocations: 73.69 kB / 0.9698 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.9158, allocations: 78.16 kB / 0.9698 GB, free: 9.566 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.9158, allocations: 13.22 kB / 0.9698 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.9158, allocations: 0 / 0.9698 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.9158, allocations: 0 / 0.9698 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007675/0.9166, allocations: 0.6263 MB / 0.9705 GB, free: 9.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.9166, allocations: 1.594 kB / 0.9705 GB, free: 9.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.9171, allocations: 85.3 kB / 0.9705 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.9171, allocations: 1.188 kB / 0.9705 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.9171, allocations: 7.156 kB / 0.9705 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.9171, allocations: 2.281 kB / 0.9706 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.9171, allocations: 3.984 kB / 0.9706 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.9187, allocations: 0.7287 MB / 0.9713 GB, free: 8.609 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002654/0.919, allocations: 185.7 kB / 0.9714 GB, free: 8.434 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.576e-05/0.9191, allocations: 14.23 kB / 0.9715 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.9195, allocations: 33.72 kB / 0.9715 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.9196, allocations: 31.11 kB / 0.9715 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.9196, allocations: 18.39 kB / 0.9715 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005607/0.9202, allocations: 436.4 kB / 0.972 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9202, allocations: 1.062 kB / 0.972 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006816/0.9209, allocations: 217.9 kB / 0.9722 GB, free: 8.074 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.0001612/0.921, allocations: 110.6 kB / 0.9723 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001731/0.9228, allocations: 0.7893 MB / 0.973 GB, free: 7.551 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.9228, allocations: 4 kB / 0.973 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000511/0.9233, allocations: 212.9 kB / 0.9732 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009757/0.9243, allocations: 198.8 kB / 0.9734 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.9267, allocations: 1.441 MB / 0.9748 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005343/0.9272, allocations: 0.9172 MB / 0.9757 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004141/0.9277, allocations: 89.45 kB / 0.9758 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.9278, allocations: 48 kB / 0.9759 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.9278, allocations: 0.9375 kB / 0.9759 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.01567/0.9435, allocations: 7.177 MB / 0.9829 GB, free: 14.68 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