Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001308/0.001308, 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.001617/0.001617, allocations: 191.1 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.417/1.417, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.803/2.803, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 69.5 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2842, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005363/0.2896, allocations: 3.721 MB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003442/0.2931, allocations: 1.309 MB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004968/0.2936, allocations: 27.88 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003653/0.294, allocations: 91.11 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004935/0.2945, allocations: 143 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.2956, allocations: 0.5327 MB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008971/0.2965, allocations: 0.8978 MB / 1.059 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005004/0.297, allocations: 333.6 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003754/0.2974, allocations: 326.2 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.2977, allocations: 326.1 kB / 1.06 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.115e-05/0.2978, allocations: 36 kB / 1.06 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.402e-05/0.2979, allocations: 40 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002419/0.2982, allocations: 135.3 kB / 1.06 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003698/0.2985, allocations: 341.7 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.2992, allocations: 0.8137 MB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2992, allocations: 4 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2992, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.2993, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 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.002089/0.3014, allocations: 1.18 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3014, allocations: 8.031 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.3016, allocations: 95.81 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008855/0.3025, allocations: 0.5909 MB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.3026, allocations: 101 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.778e-05/0.3027, allocations: 56.28 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3037, allocations: 0.6041 MB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3038, allocations: 0 / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.536e-05/0.3038, allocations: 20 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.3039, allocations: 16 kB / 1.064 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009814/0.3048, allocations: 419.7 kB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.3078, allocations: 2.118 MB / 1.066 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.309, allocations: 0.5073 MB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004467/0.3095, allocations: 209.9 kB / 1.067 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.913e-05/0.3095, allocations: 8 kB / 1.067 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000702/0.3102, allocations: 282.2 kB / 1.067 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.3102, allocations: 0 / 1.067 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001457/0.3117, allocations: 0.6177 MB / 1.068 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.3118, allocations: 88.86 kB / 1.068 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006754/0.3125, allocations: 0.6061 MB / 1.068 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.3125, allocations: 33.7 kB / 1.068 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.3128, allocations: 360.7 kB / 1.069 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.3129, allocations: 153.8 kB / 1.069 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.3131, allocations: 98.17 kB / 1.069 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3132, allocations: 330 kB / 1.069 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004399/0.3137, allocations: 183 kB / 1.069 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004815/0.3141, allocations: 280.2 kB / 1.07 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009052/0.3151, allocations: 474 kB / 1.07 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3151, allocations: 3.938 kB / 1.07 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001142/0.3162, allocations: 0.6021 MB / 1.071 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.3163, allocations: 33.7 kB / 1.071 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3163, allocations: 0 / 1.071 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3163, allocations: 8 kB / 1.071 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.3168, allocations: 107.8 kB / 1.071 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3168, allocations: 4.25 kB / 1.071 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.3172, allocations: 67.41 kB / 1.071 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.3172, allocations: 20 kB / 1.071 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005528/0.3178, allocations: 314.7 kB / 1.071 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004547/0.3183, allocations: 264.3 kB / 1.071 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008077/0.3191, allocations: 457.9 kB / 1.072 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.914e-06/0.3191, allocations: 0 / 1.072 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00115/0.3202, allocations: 0.575 MB / 1.072 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3203, allocations: 39.2 kB / 1.072 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3203, allocations: 4 kB / 1.072 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.613e-06/0.3203, allocations: 4 kB / 1.072 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.3207, allocations: 99.88 kB / 1.073 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3207, allocations: 11.94 kB / 1.073 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.3211, allocations: 51.66 kB / 1.073 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.3211, allocations: 20 kB / 1.073 GB, free: 3.25 MB / 0.8262 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.0001661/0.3214, allocations: 217 kB / 1.073 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3215, allocations: 71.06 kB / 1.073 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.3216, allocations: 83.2 kB / 1.073 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.3217, allocations: 11.92 kB / 1.073 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3217, allocations: 7.875 kB / 1.073 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3217, allocations: 4 kB / 1.073 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006799/0.3224, allocations: 0.6257 MB / 1.074 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3224, allocations: 0 / 1.074 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000448/0.3228, allocations: 79.89 kB / 1.074 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3228, allocations: 4 kB / 1.074 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.3229, allocations: 11.98 kB / 1.074 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3229, allocations: 4 kB / 1.074 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3229, allocations: 0 / 1.074 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3244, allocations: 0.7211 MB / 1.074 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.3247, allocations: 200 kB / 1.075 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.518e-05/0.3247, allocations: 4 kB / 1.075 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003906/0.3251, allocations: 39.97 kB / 1.075 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.995e-05/0.3252, allocations: 27.95 kB / 1.075 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.3253, allocations: 19.98 kB / 1.075 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004806/0.3258, allocations: 435 kB / 1.075 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3258, allocations: 0 / 1.075 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005783/0.3263, allocations: 211.4 kB / 1.075 GB, free: 420 kB / 0.8262 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.0001315/0.3265, allocations: 107.2 kB / 1.075 GB, free: 304 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001585/0.3281, allocations: 0.7935 MB / 1.076 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3281, allocations: 3.938 kB / 1.076 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004481/0.3285, allocations: 211.8 kB / 1.076 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009816/0.3295, allocations: 192.3 kB / 1.077 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.3317, allocations: 1.447 MB / 1.078 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.3322, allocations: 0.9183 MB / 1.079 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003797/0.3326, allocations: 89.11 kB / 1.079 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.3327, allocations: 47.44 kB / 1.079 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of SimCode: time 4.21e-07/0.3327, allocations: 0 / 1.079 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of Templates: time 0.01312/0.3459, allocations: 7.192 MB / 1.086 GB, free: 5.41 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches