Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_11_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.001348/0.001348, allocations: 108 kB / 15.61 MB, free: 148 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.001252/0.001252, allocations: 196.6 kB / 16.53 MB, free: 6.656 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.843/2.843, allocations: 469.8 MB / 0.7424 GB, free: 7.473 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003176/0.003177, allocations: 67.56 kB / 0.9087 GB, free: 34.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2795, allocations: 159.1 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005229/0.2848, allocations: 3.72 MB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002299/0.2871, allocations: 1.332 MB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002813/0.2874, allocations: 23.88 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003132/0.2877, allocations: 130.6 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004792/0.2882, allocations: 174.5 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.2893, allocations: 0.5684 MB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009815/0.2903, allocations: 0.9566 MB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005227/0.2909, allocations: 345.6 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.2913, allocations: 370.4 kB / 1.071 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.2917, allocations: 350.1 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.2918, allocations: 76 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.2919, allocations: 80 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.2921, allocations: 183.3 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.2924, allocations: 377.7 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008096/0.2932, allocations: 0.8527 MB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2933, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2933, allocations: 0 / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.707e-06/0.2933, allocations: 0 / 1.073 GB, free: 4.707 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.002135/0.2954, allocations: 1.191 MB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2955, allocations: 12.03 kB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.2956, allocations: 90.7 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2958, allocations: 91.81 kB / 1.075 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009567/0.2967, allocations: 0.5909 MB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.2969, allocations: 108.9 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/0.2969, allocations: 52.38 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2981, allocations: 0.5923 MB / 1.076 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2981, allocations: 4 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.662e-05/0.2982, allocations: 20 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.2982, allocations: 16 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.2993, allocations: 423.6 kB / 1.076 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.3022, allocations: 2.114 MB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.3035, allocations: 0.5044 MB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005117/0.3041, allocations: 220.7 kB / 1.079 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.3041, allocations: 4 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007154/0.3048, allocations: 282.4 kB / 1.079 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 4.067e-06/0.3048, allocations: 0 / 1.079 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001579/0.3064, allocations: 0.6137 MB / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.3065, allocations: 96.84 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007506/0.3073, allocations: 0.6061 MB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.3073, allocations: 33.7 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.3076, allocations: 360.8 kB / 1.081 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.3078, allocations: 157.8 kB / 1.081 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.3079, allocations: 98.23 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3081, allocations: 322 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004918/0.3086, allocations: 183 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.3092, allocations: 276.2 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3102, allocations: 485.8 kB / 1.083 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3102, allocations: 0 / 1.083 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001306/0.3115, allocations: 0.5983 MB / 1.083 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.3116, allocations: 31.73 kB / 1.083 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3116, allocations: 8 kB / 1.083 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.3116, allocations: 4 kB / 1.083 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005287/0.3121, allocations: 108.1 kB / 1.083 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.3122, allocations: 12 kB / 1.083 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/0.3126, allocations: 63.41 kB / 1.083 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.3126, allocations: 20 kB / 1.083 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005989/0.3132, allocations: 309.2 kB / 1.084 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005129/0.3137, allocations: 268.2 kB / 1.084 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009112/0.3147, allocations: 450 kB / 1.084 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.044e-06/0.3147, allocations: 4 kB / 1.084 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001197/0.3159, allocations: 0.5826 MB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.3159, allocations: 33.7 kB / 1.085 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.3159, allocations: 0 / 1.085 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.3159, allocations: 8 kB / 1.085 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004818/0.3164, allocations: 103.8 kB / 1.085 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3165, allocations: 4 kB / 1.085 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.3168, allocations: 51.86 kB / 1.085 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.3169, allocations: 23.98 kB / 1.085 GB, free: 8.055 MB / 0.8419 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.0001772/0.3171, allocations: 216 kB / 1.085 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.3172, allocations: 75.06 kB / 1.085 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.3173, allocations: 79.22 kB / 1.086 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3173, allocations: 4 kB / 1.086 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3174, allocations: 3.938 kB / 1.086 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3174, allocations: 3.984 kB / 1.086 GB, free: 7.668 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007105/0.3181, allocations: 0.618 MB / 1.086 GB, free: 7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3181, allocations: 4 kB / 1.086 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004896/0.3186, allocations: 87.88 kB / 1.086 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3186, allocations: 0 / 1.086 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.3186, allocations: 12 kB / 1.086 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3186, allocations: 0 / 1.086 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3187, allocations: 4 kB / 1.086 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.3203, allocations: 0.7325 MB / 1.087 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.3205, allocations: 192 kB / 1.087 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.3206, allocations: 11.98 kB / 1.087 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.3211, allocations: 35.97 kB / 1.087 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.3212, allocations: 35.94 kB / 1.087 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.3212, allocations: 20.11 kB / 1.087 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005259/0.3217, allocations: 427 kB / 1.088 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3218, allocations: 0 / 1.088 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005951/0.3224, allocations: 215.4 kB / 1.088 GB, free: 5.215 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.001952/0.3243, allocations: 1.285 MB / 1.089 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001807/0.3261, allocations: 0.8129 MB / 1.09 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3261, allocations: 0 / 1.09 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005108/0.3267, allocations: 215.5 kB / 1.09 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.3276, allocations: 207.2 kB / 1.09 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008559/0.3362, allocations: 5.615 MB / 1.096 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.3367, allocations: 0.9219 MB / 1.097 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000397/0.3371, allocations: 93.06 kB / 1.097 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.3375, allocations: 259.3 kB / 1.097 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of SimCode: time 3.9e-07/0.3375, allocations: 0 / 1.097 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03991/0.3774, allocations: 13.86 MB / 1.111 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.226, allocations: 7.922 kB / 1.111 GB, free: 13.88 MB / 0.8731 GB (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches