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.001052/0.001052, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00117/0.001171, allocations: 168.7 kB / 15.95 MB, free: 204 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.53/1.53, allocations: 223.3 MB / 240 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.548/2.548, allocations: 390.9 MB / 0.666 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.000405, allocations: 12 kB / 0.8153 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9721/0.9725, allocations: 142.4 MB / 0.9544 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00394/0.9765, allocations: 3.133 MB / 0.9575 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003253/0.9798, allocations: 1.262 MB / 0.9587 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005681/0.9804, allocations: 24.25 kB / 0.9587 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.9808, allocations: 88.72 kB / 0.9588 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005329/0.9813, allocations: 139.6 kB / 0.9589 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.9825, allocations: 462.9 kB / 0.9594 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000983/0.9835, allocations: 0.8162 MB / 0.9602 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005095/0.984, allocations: 262.5 kB / 0.9604 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.9844, allocations: 267.1 kB / 0.9607 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.9847, allocations: 259.1 kB / 0.9609 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.309e-05/0.9848, allocations: 21.09 kB / 0.961 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.623e-05/0.9849, allocations: 21.06 kB / 0.961 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.985, allocations: 117.8 kB / 0.9611 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.9852, allocations: 141 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.9858, allocations: 0.6148 MB / 0.9618 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.9858, allocations: 0 / 0.9618 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9858, allocations: 0.875 kB / 0.9618 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.9859, allocations: 0 / 0.9618 GB, free: 1.992 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.001973/0.9878, allocations: 1.069 MB / 0.9629 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.9879, allocations: 8.969 kB / 0.9629 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002034/0.9881, allocations: 96.36 kB / 0.963 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000973/0.9891, allocations: 0.5724 MB / 0.9635 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.9892, allocations: 103.8 kB / 0.9636 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.579e-05/0.9893, allocations: 58.91 kB / 0.9637 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.9906, allocations: 0.6004 MB / 0.9643 GB, free: 104 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.9906, allocations: 5.344 kB / 0.9643 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-05/0.9907, allocations: 24.73 kB / 0.9643 GB, free: 80 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.9907, allocations: 12.84 kB / 0.9643 GB, free: 80 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000956/0.9917, allocations: 441.8 kB / 0.9647 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.9948, allocations: 2.136 MB / 0.9668 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.9961, allocations: 0.5181 MB / 0.9673 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004928/0.9966, allocations: 225.5 kB / 0.9675 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.9967, allocations: 8.875 kB / 0.9676 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007262/0.9974, allocations: 287.6 kB / 0.9678 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 3.146e-06/0.9974, allocations: 0 / 0.9678 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001592/0.999, allocations: 0.6351 MB / 0.9684 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.9991, allocations: 97.86 kB / 0.9685 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008572/1, allocations: 0.6047 MB / 0.9691 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.019e-05/1, allocations: 37.08 kB / 0.9692 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/1, allocations: 358.2 kB / 0.9695 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/1, allocations: 155.4 kB / 0.9697 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/1.001, allocations: 10.62 kB / 0.9697 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001115/1.001, allocations: 327.5 kB / 0.97 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/1.001, allocations: 180.7 kB / 0.9701 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004828/1.002, allocations: 287.1 kB / 0.9704 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/1.002, allocations: 233 kB / 0.9706 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.002, allocations: 1.062 kB / 0.9706 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001327/1.003, allocations: 0.6134 MB / 0.9712 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/1.004, allocations: 186.5 kB / 0.9714 GB, free: 11 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.004, allocations: 3 kB / 0.9714 GB, free: 11 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/1.004, allocations: 13.05 kB / 0.9714 GB, free: 11 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/1.004, allocations: 113.6 kB / 0.9715 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/1.004, allocations: 12.7 kB / 0.9716 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004032/1.005, allocations: 62.67 kB / 0.9716 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/1.005, allocations: 22.7 kB / 0.9716 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.026e-06/1.005, allocations: 9.719 kB / 0.9716 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001003/1.006, allocations: 0.497 MB / 0.9721 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/1.006, allocations: 6.75 kB / 0.9721 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/1.006, allocations: 5.656 kB / 0.9721 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/1.006, allocations: 108.1 kB / 0.9723 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/1.006, allocations: 4.594 kB / 0.9723 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/1.006, allocations: 64.72 kB / 0.9723 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/1.007, allocations: 18.41 kB / 0.9723 GB, free: 10.59 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.0004213/1.007, allocations: 282.8 kB / 0.9726 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/1.007, allocations: 73.31 kB / 0.9727 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001679/1.007, allocations: 82.89 kB / 0.9728 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/1.007, allocations: 3.781 kB / 0.9728 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/1.007, allocations: 1 kB / 0.9728 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/1.007, allocations: 0 / 0.9728 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007646/1.008, allocations: 0.63 MB / 0.9734 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/1.008, allocations: 1.344 kB / 0.9734 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004474/1.009, allocations: 80.89 kB / 0.9735 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.009, allocations: 1.969 kB / 0.9735 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/1.009, allocations: 15.02 kB / 0.9735 GB, free: 9.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/1.009, allocations: 1.906 kB / 0.9735 GB, free: 9.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/1.009, allocations: 1 kB / 0.9735 GB, free: 9.68 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/1.01, allocations: 0.7535 MB / 0.9742 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/1.01, allocations: 195.9 kB / 0.9744 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.518e-05/1.01, allocations: 8.062 kB / 0.9744 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/1.011, allocations: 46.59 kB / 0.9744 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.302e-05/1.011, allocations: 34.53 kB / 0.9745 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/1.011, allocations: 17.64 kB / 0.9745 GB, free: 9.035 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005463/1.012, allocations: 423.8 kB / 0.9749 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.012, allocations: 0 / 0.9749 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007218/1.012, allocations: 215.1 kB / 0.9751 GB, free: 8.738 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.0001668/1.012, allocations: 116.9 kB / 0.9752 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001797/1.014, allocations: 0.8058 MB / 0.976 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/1.014, allocations: 0 / 0.976 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005431/1.015, allocations: 228.1 kB / 0.9762 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/1.016, allocations: 195.1 kB / 0.9764 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/1.019, allocations: 1.385 MB / 0.9778 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/1.019, allocations: 0.9144 MB / 0.9787 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004807/1.02, allocations: 93.11 kB / 0.9787 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/1.02, allocations: 47.44 kB / 0.9788 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of SimCode: time 8.51e-07/1.02, allocations: 3.938 kB / 0.9788 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of Templates: time 0.01442/1.034, allocations: 6.878 MB / 0.9855 GB, free: 15.14 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