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.005502/0.005502, allocations: 106 kB / 15.74 MB, free: 5.992 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.00164/0.00164, allocations: 196 kB / 16.67 MB, free: 5.914 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.484/2.484, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 60.12 kB / 1.054 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8047/0.8064, allocations: 157.4 MB / 1.207 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00546/0.8119, allocations: 3.71 MB / 1.211 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003035/0.815, allocations: 1.321 MB / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007884/0.8158, allocations: 31.88 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000534/0.8164, allocations: 126.6 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0009436/0.8174, allocations: 170.5 kB / 1.212 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.8189, allocations: 0.5753 MB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001735/0.8206, allocations: 0.9759 MB / 1.214 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007894/0.8214, allocations: 345.6 kB / 1.214 GB, free: 6.277 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007982/0.8223, allocations: 370.5 kB / 1.215 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006593/0.8229, allocations: 358 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.8232, allocations: 76 kB / 1.215 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.8234, allocations: 80 kB / 1.215 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.8236, allocations: 183.2 kB / 1.215 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004286/0.824, allocations: 377.7 kB / 1.216 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.8251, allocations: 0.8894 MB / 1.217 GB, free: 3.969 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.8251, allocations: 4 kB / 1.217 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8251, allocations: 0 / 1.217 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.022e-05/0.8252, allocations: 0 / 1.217 GB, free: 3.965 MB / 0.9356 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.002789/0.828, allocations: 1.18 MB / 1.218 GB, free: 2.73 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.828, allocations: 8.031 kB / 1.218 GB, free: 2.723 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.8282, allocations: 94.69 kB / 1.218 GB, free: 2.621 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.8284, allocations: 95.81 kB / 1.218 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.8296, allocations: 0.622 MB / 1.219 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.8298, allocations: 96.95 kB / 1.219 GB, free: 1.754 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.396e-05/0.8299, allocations: 56.38 kB / 1.219 GB, free: 1.699 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.831, allocations: 0.5962 MB / 1.219 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.8311, allocations: 0 / 1.219 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.8311, allocations: 27.98 kB / 1.219 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.8311, allocations: 12 kB / 1.219 GB, free: 1.023 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.8322, allocations: 423.7 kB / 1.22 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003069/0.8352, allocations: 2.098 MB / 1.222 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.8365, allocations: 0.4999 MB / 1.222 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.837, allocations: 221.3 kB / 1.222 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.837, allocations: 7.938 kB / 1.222 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006598/0.8377, allocations: 270.2 kB / 1.223 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 2.675e-06/0.8377, allocations: 0 / 1.223 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.001531/0.8392, allocations: 0.6138 MB / 1.223 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.8393, allocations: 92.78 kB / 1.223 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007431/0.8401, allocations: 0.6217 MB / 1.224 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.8401, allocations: 33.64 kB / 1.224 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.8404, allocations: 360.8 kB / 1.224 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.8406, allocations: 153.8 kB / 1.225 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.8407, allocations: 102.1 kB / 1.225 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.8409, allocations: 326 kB / 1.225 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004477/0.8413, allocations: 179 kB / 1.225 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004883/0.8418, allocations: 276.2 kB / 1.225 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009217/0.8428, allocations: 481.8 kB / 1.226 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.8428, allocations: 4 kB / 1.226 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001244/0.844, allocations: 0.5982 MB / 1.226 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.8441, allocations: 33.7 kB / 1.226 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.8441, allocations: 4.312 kB / 1.226 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.8441, allocations: 8 kB / 1.226 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.8446, allocations: 107.8 kB / 1.227 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.8446, allocations: 4 kB / 1.227 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.8451, allocations: 67.44 kB / 1.227 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.8451, allocations: 16 kB / 1.227 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005489/0.8457, allocations: 313.2 kB / 1.227 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004394/0.8461, allocations: 268.2 kB / 1.227 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008187/0.847, allocations: 450 kB / 1.228 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.847, allocations: 0 / 1.228 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001125/0.8481, allocations: 0.5864 MB / 1.228 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.8481, allocations: 29.7 kB / 1.228 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.8482, allocations: 4 kB / 1.228 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.8482, allocations: 4 kB / 1.228 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.8486, allocations: 112.1 kB / 1.228 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.8486, allocations: 8 kB / 1.228 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.849, allocations: 51.56 kB / 1.228 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.8491, allocations: 23.94 kB / 1.228 GB, free: 7.305 MB / 0.9512 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.00018/0.8493, allocations: 212.1 kB / 1.229 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.8494, allocations: 71.16 kB / 1.229 GB, free: 7.02 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.8496, allocations: 75.22 kB / 1.229 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.8496, allocations: 11.98 kB / 1.229 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.8496, allocations: 7.984 kB / 1.229 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.8496, allocations: 0 / 1.229 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006994/0.8503, allocations: 0.6257 MB / 1.229 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.8503, allocations: 0 / 1.229 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004531/0.8508, allocations: 79.89 kB / 1.229 GB, free: 6.168 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.8508, allocations: 4 kB / 1.229 GB, free: 6.164 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.224e-05/0.8509, allocations: 12 kB / 1.229 GB, free: 6.152 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.8509, allocations: 0 / 1.229 GB, free: 6.152 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.8509, allocations: 3.984 kB / 1.229 GB, free: 6.148 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.8524, allocations: 0.7327 MB / 1.23 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.8526, allocations: 192.1 kB / 1.23 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.8527, allocations: 11.98 kB / 1.23 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.8531, allocations: 31.97 kB / 1.23 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.892e-05/0.8533, allocations: 31.95 kB / 1.23 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.993e-05/0.8533, allocations: 15.98 kB / 1.23 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000499/0.8538, allocations: 431 kB / 1.231 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8538, allocations: 0 / 1.231 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006151/0.8544, allocations: 223.2 kB / 1.231 GB, free: 4.469 MB / 0.9512 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.001772/0.8562, allocations: 1.288 MB / 1.232 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00158/0.8578, allocations: 0.7771 MB / 1.233 GB, free: 2.348 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.8578, allocations: 0 / 1.233 GB, free: 2.348 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.8583, allocations: 224.3 kB / 1.233 GB, free: 2.129 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.8593, allocations: 208.2 kB / 1.234 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00824/0.8675, allocations: 5.351 MB / 1.239 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.868, allocations: 0.9141 MB / 1.24 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0004188/0.8685, allocations: 89.11 kB / 1.24 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003549/0.8688, allocations: 259.4 kB / 1.24 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of SimCode: time 1.934e-06/0.8688, allocations: 0 / 1.24 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03952/0.9084, allocations: 14.32 MB / 1.254 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.407/9.315, allocations: 5.625 kB / 1.254 GB, free: 13 MB / 0.9825 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