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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, 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.001062/0.001062, allocations: 193.7 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.218/1.218, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.51/2.51, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.2 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2341, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004751/0.2389, allocations: 3.703 MB / 1.057 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002383/0.2413, allocations: 1.336 MB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000497/0.2418, allocations: 23.88 kB / 1.058 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.2422, allocations: 130.6 kB / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005827/0.2428, allocations: 170.5 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.2439, allocations: 0.5644 MB / 1.059 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009843/0.2449, allocations: 0.9721 MB / 1.06 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005168/0.2454, allocations: 345.6 kB / 1.06 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004383/0.2458, allocations: 362.4 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.2462, allocations: 346.1 kB / 1.061 GB, free: 348 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.2464, allocations: 84 kB / 1.061 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.2465, allocations: 80 kB / 1.061 GB, free: 184 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2466, allocations: 179.2 kB / 1.061 GB, free: 4 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.247, allocations: 381.9 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007075/0.2477, allocations: 0.8603 MB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2477, allocations: 0 / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2477, allocations: 0 / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.081e-05/0.2477, allocations: 0 / 1.062 GB, free: 14.77 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.001926/0.2497, allocations: 1.183 MB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.2497, allocations: 8.625 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.2498, allocations: 98.7 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.25, allocations: 91.81 kB / 1.064 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008448/0.2508, allocations: 0.5909 MB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.633e-05/0.2509, allocations: 101 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.766e-05/0.251, allocations: 60.31 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009735/0.252, allocations: 0.6001 MB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.252, allocations: 0 / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.981e-05/0.2521, allocations: 24 kB / 1.065 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2521, allocations: 12 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008948/0.253, allocations: 427.6 kB / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.2555, allocations: 2.11 MB / 1.067 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2566, allocations: 0.5029 MB / 1.068 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004238/0.2571, allocations: 219.1 kB / 1.068 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.2571, allocations: 4 kB / 1.068 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000618/0.2577, allocations: 282.1 kB / 1.068 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 1.783e-06/0.2577, allocations: 4 kB / 1.068 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001327/0.2591, allocations: 0.606 MB / 1.069 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.2591, allocations: 88.86 kB / 1.069 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.2598, allocations: 0.61 MB / 1.07 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.2598, allocations: 33.7 kB / 1.07 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.2601, allocations: 364.8 kB / 1.07 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.2602, allocations: 153.8 kB / 1.07 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.2603, allocations: 98.17 kB / 1.07 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.2604, allocations: 330 kB / 1.071 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/0.2608, allocations: 183 kB / 1.071 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.2613, allocations: 284.2 kB / 1.071 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008537/0.2622, allocations: 473.9 kB / 1.071 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2622, allocations: 0 / 1.071 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001095/0.2633, allocations: 0.5983 MB / 1.072 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.2633, allocations: 37.7 kB / 1.072 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2633, allocations: 4 kB / 1.072 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2634, allocations: 4 kB / 1.072 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.2638, allocations: 107.8 kB / 1.072 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2638, allocations: 7.938 kB / 1.072 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.2642, allocations: 67.62 kB / 1.072 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.2642, allocations: 23.98 kB / 1.072 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004903/0.2647, allocations: 305.2 kB / 1.073 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004091/0.2652, allocations: 268.2 kB / 1.073 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000762/0.2659, allocations: 450 kB / 1.073 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.853e-06/0.2659, allocations: 0 / 1.073 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.000994/0.2669, allocations: 0.5864 MB / 1.074 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.267, allocations: 33.7 kB / 1.074 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.267, allocations: 12.3 kB / 1.074 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.921e-06/0.267, allocations: 4 kB / 1.074 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.2674, allocations: 103.8 kB / 1.074 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2674, allocations: 4 kB / 1.074 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.2678, allocations: 47.66 kB / 1.074 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.2678, allocations: 20 kB / 1.074 GB, free: 2.117 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.0001461/0.2679, allocations: 216 kB / 1.074 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/0.268, allocations: 79.06 kB / 1.074 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.2682, allocations: 83.2 kB / 1.074 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2682, allocations: 4 kB / 1.074 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2682, allocations: 7.938 kB / 1.074 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2682, allocations: 0 / 1.074 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.2688, allocations: 0.618 MB / 1.075 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2688, allocations: 0 / 1.075 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004227/0.2692, allocations: 79.89 kB / 1.075 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2692, allocations: 8 kB / 1.075 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.2693, allocations: 15.98 kB / 1.075 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2693, allocations: 0 / 1.075 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2693, allocations: 0 / 1.075 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.2707, allocations: 0.7288 MB / 1.076 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.2709, allocations: 192 kB / 1.076 GB, free: 0 / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.518e-05/0.271, allocations: 12.08 kB / 1.076 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.2713, allocations: 27.97 kB / 1.076 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.584e-05/0.2714, allocations: 35.95 kB / 1.076 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.2715, allocations: 19.97 kB / 1.076 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004358/0.2719, allocations: 435 kB / 1.076 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2719, allocations: 0 / 1.076 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005266/0.2725, allocations: 211.4 kB / 1.077 GB, free: 15.28 MB / 0.8419 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.001632/0.2741, allocations: 1.277 MB / 1.078 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001564/0.2757, allocations: 0.8127 MB / 1.079 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2757, allocations: 4 kB / 1.079 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.2761, allocations: 223.7 kB / 1.079 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008018/0.2769, allocations: 195.6 kB / 1.079 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.2841, allocations: 5.626 MB / 1.085 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.2845, allocations: 0.9141 MB / 1.086 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003628/0.2849, allocations: 93.11 kB / 1.086 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.2852, allocations: 259.4 kB / 1.086 GB, free: 5.66 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.2852, allocations: 0 / 1.086 GB, free: 5.66 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7128/0.998, allocations: 13.85 MB / 1.099 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.956/10.95, allocations: 9.969 kB / 1.099 GB, free: 7.973 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches