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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008291/0.008291, allocations: 99.61 kB / 15.73 MB, free: 6.031 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.002285/0.002285, allocations: 194.1 kB / 16.67 MB, free: 5.953 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 62.89 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2744, allocations: 162.2 MB / 1.241 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005009/0.2794, allocations: 3.731 MB / 1.245 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002195/0.2817, allocations: 1.313 MB / 1.246 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002838/0.2819, allocations: 27.81 kB / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.2823, allocations: 126.7 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004769/0.2828, allocations: 178.5 kB / 1.247 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.2838, allocations: 0.5671 MB / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009944/0.2848, allocations: 0.9643 MB / 1.248 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005075/0.2854, allocations: 349.8 kB / 1.248 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003929/0.2858, allocations: 362.4 kB / 1.249 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.2862, allocations: 358.1 kB / 1.249 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.2863, allocations: 76 kB / 1.249 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.2864, allocations: 80 kB / 1.249 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.2866, allocations: 179.3 kB / 1.249 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003196/0.2869, allocations: 377.7 kB / 1.25 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008959/0.2878, allocations: 0.9021 MB / 1.251 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2878, allocations: 0 / 1.251 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.193e-06/0.2878, allocations: 4 kB / 1.251 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.225e-05/0.2878, allocations: 0 / 1.251 GB, free: 15.71 MB / 0.9825 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.002046/0.2899, allocations: 1.206 MB / 1.252 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.2899, allocations: 8.031 kB / 1.252 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.2901, allocations: 90.7 kB / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.2902, allocations: 104.3 kB / 1.252 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009904/0.2912, allocations: 0.6228 MB / 1.253 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.2913, allocations: 96.95 kB / 1.253 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.778e-05/0.2914, allocations: 56.33 kB / 1.253 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.2926, allocations: 0.6078 MB / 1.253 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.2926, allocations: 7.938 kB / 1.253 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.2926, allocations: 24 kB / 1.253 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.2927, allocations: 12 kB / 1.253 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2937, allocations: 427.7 kB / 1.254 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.2965, allocations: 2.099 MB / 1.256 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.2978, allocations: 0.4951 MB / 1.256 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004859/0.2983, allocations: 212.8 kB / 1.257 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.2983, allocations: 17.05 kB / 1.257 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006579/0.299, allocations: 277.9 kB / 1.257 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=45): time 1.864e-06/0.299, allocations: 0 / 1.257 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of matching and sorting (n=45): time 0.001522/0.3005, allocations: 0.6234 MB / 1.258 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.3006, allocations: 84.86 kB / 1.258 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007239/0.3013, allocations: 0.6099 MB / 1.258 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.669e-05/0.3014, allocations: 37.7 kB / 1.258 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.3017, allocations: 365.1 kB / 1.259 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.3018, allocations: 166.6 kB / 1.259 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.302, allocations: 90.23 kB / 1.259 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.3021, allocations: 329.9 kB / 1.259 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.3026, allocations: 183 kB / 1.259 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.3032, allocations: 284.2 kB / 1.26 GB, free: 6.266 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000987/0.3042, allocations: 473.9 kB / 1.26 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.3042, allocations: 4 kB / 1.26 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001255/0.3054, allocations: 0.6025 MB / 1.261 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.3055, allocations: 37.7 kB / 1.261 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3055, allocations: 0 / 1.261 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3055, allocations: 8.312 kB / 1.261 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.306, allocations: 111.8 kB / 1.261 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.306, allocations: 4 kB / 1.261 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.3064, allocations: 67.59 kB / 1.261 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.3065, allocations: 16 kB / 1.261 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005778/0.307, allocations: 309.2 kB / 1.261 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004951/0.3075, allocations: 264.3 kB / 1.261 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008886/0.3084, allocations: 457.9 kB / 1.262 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.893e-06/0.3085, allocations: 0 / 1.262 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001144/0.3096, allocations: 0.5791 MB / 1.262 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.3096, allocations: 39.58 kB / 1.262 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3097, allocations: 4 kB / 1.262 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.857e-06/0.3097, allocations: 4 kB / 1.262 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004572/0.3101, allocations: 107.8 kB / 1.263 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.3101, allocations: 4 kB / 1.263 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.3105, allocations: 55.94 kB / 1.263 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.3106, allocations: 20 kB / 1.263 GB, free: 2.984 MB / 0.9825 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.0001626/0.3107, allocations: 212.5 kB / 1.263 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.3108, allocations: 79.48 kB / 1.263 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.311, allocations: 79.2 kB / 1.263 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.311, allocations: 4 kB / 1.263 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.311, allocations: 4 kB / 1.263 GB, free: 2.605 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.311, allocations: 7.938 kB / 1.263 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006965/0.3117, allocations: 0.6258 MB / 1.264 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3117, allocations: 0 / 1.264 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.3122, allocations: 87.83 kB / 1.264 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.3122, allocations: 4 kB / 1.264 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.318e-05/0.3123, allocations: 11.92 kB / 1.264 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3123, allocations: 4 kB / 1.264 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3123, allocations: 0 / 1.264 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.3139, allocations: 0.7358 MB / 1.264 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.3141, allocations: 196.5 kB / 1.265 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.3142, allocations: 12 kB / 1.265 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004073/0.3146, allocations: 31.97 kB / 1.265 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.112e-05/0.3147, allocations: 35.95 kB / 1.265 GB, free: 0.7695 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/0.3148, allocations: 11.98 kB / 1.265 GB, free: 0.7578 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005035/0.3153, allocations: 435 kB / 1.265 GB, free: 344 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3153, allocations: 0 / 1.265 GB, free: 344 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005832/0.3159, allocations: 215.5 kB / 1.265 GB, free: 128 kB / 0.9825 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.001909/0.3178, allocations: 1.289 MB / 1.267 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00164/0.3194, allocations: 0.7849 MB / 1.267 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3194, allocations: 0 / 1.267 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.32, allocations: 215.5 kB / 1.268 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008788/0.3208, allocations: 200.4 kB / 1.268 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007969/0.3288, allocations: 5.388 MB / 1.273 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.3294, allocations: 0.914 MB / 1.274 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003475/0.3297, allocations: 93.11 kB / 1.274 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.3301, allocations: 267.3 kB / 1.274 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.3301, allocations: 0 / 1.274 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.3698, allocations: 14.04 MB / 1.288 GB, free: 8.902 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.979/9.349, allocations: 25.38 kB / 1.288 GB, free: 8.879 MB / 1.014 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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