Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.OBC.CDL.Reals.Validation.PIDInitialState,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDInitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDInitialState",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.009435/0.009435, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00226/0.00226, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.606/2.606, allocations: 469.4 MB / 0.7421 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.91 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8674/0.8688, allocations: 159.1 MB / 1.22 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState): time 0.004018/0.8729, allocations: 1.833 MB / 1.222 GB, free: 472 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002635/0.8756, allocations: 1.263 MB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.876, allocations: 8 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003254/0.8764, allocations: 75.2 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.8767, allocations: 55.41 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006086/0.8773, allocations: 171.8 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006687/0.878, allocations: 492.9 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000511/0.8785, allocations: 275.2 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.8788, allocations: 179.2 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.8791, allocations: 202.9 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.736e-05/0.8792, allocations: 52 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.8792, allocations: 52 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.8794, allocations: 115.6 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.8797, allocations: 206.9 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006998/0.8804, allocations: 0.587 MB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.8804, allocations: 0 / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8804, allocations: 0 / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.196e-05/0.8804, allocations: 0 / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001589/0.882, allocations: 0.7481 MB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.8821, allocations: 16.61 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.8822, allocations: 78.72 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.8823, allocations: 56.61 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.8829, allocations: 348.5 kB / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.881e-05/0.883, allocations: 33.36 kB / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.8831, allocations: 40.33 kB / 1.226 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000702/0.8838, allocations: 411.5 kB / 1.227 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.8838, allocations: 7.938 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.8839, allocations: 16 kB / 1.227 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.8839, allocations: 8 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007204/0.8846, allocations: 283.8 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.8869, allocations: 1.374 MB / 1.229 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000812/0.8877, allocations: 238.9 kB / 1.229 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.888, allocations: 120.8 kB / 1.229 GB, free: 8.809 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.888, allocations: 4 kB / 1.229 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.888, allocations: 42.56 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.8881, allocations: 0 / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20): time 0.0007105/0.8888, allocations: 295.1 kB / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.8889, allocations: 114.8 kB / 1.229 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004429/0.8893, allocations: 401.6 kB / 1.23 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.8893, allocations: 33.7 kB / 1.23 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002883/0.8896, allocations: 256.1 kB / 1.23 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.8897, allocations: 75.36 kB / 1.23 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.8898, allocations: 69.97 kB / 1.23 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.89, allocations: 350.7 kB / 1.23 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.8903, allocations: 114.1 kB / 1.231 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003263/0.8907, allocations: 212.3 kB / 1.231 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005475/0.8912, allocations: 281.3 kB / 1.231 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.8912, allocations: 4 kB / 1.231 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007163/0.8919, allocations: 367.4 kB / 1.231 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.892, allocations: 8 kB / 1.231 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.892, allocations: 3.938 kB / 1.231 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.892, allocations: 4 kB / 1.231 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.8923, allocations: 75.89 kB / 1.231 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.8923, allocations: 3.938 kB / 1.231 GB, free: 6.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.8926, allocations: 55.7 kB / 1.231 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.8926, allocations: 12.05 kB / 1.232 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002599/0.8929, allocations: 204.8 kB / 1.232 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000239/0.8931, allocations: 183.4 kB / 1.232 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003062/0.8934, allocations: 227.5 kB / 1.232 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.8935, allocations: 4 kB / 1.232 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0006093/0.8941, allocations: 327.7 kB / 1.232 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.8941, allocations: 4 kB / 1.232 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.8941, allocations: 4 kB / 1.232 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.621e-06/0.8941, allocations: 3.938 kB / 1.232 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.8944, allocations: 63.91 kB / 1.232 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.8944, allocations: 0 / 1.232 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.8946, allocations: 51.92 kB / 1.233 GB, free: 4.816 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.8946, allocations: 12 kB / 1.233 GB, free: 4.805 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (limPI.con1.y,limPID.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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.0001791/0.8948, allocations: 196.7 kB / 1.233 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.716e-05/0.8949, allocations: 35.77 kB / 1.233 GB, free: 4.57 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005001/0.8954, allocations: 241 kB / 1.233 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.8954, allocations: 8 kB / 1.233 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8954, allocations: 0 / 1.233 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.8955, allocations: 3.938 kB / 1.233 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.8969, allocations: 0.7931 MB / 1.234 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.8969, allocations: 0 / 1.234 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.8972, allocations: 39.97 kB / 1.234 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/0.8972, allocations: 4 kB / 1.234 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.8972, allocations: 8 kB / 1.234 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.724e-06/0.8973, allocations: 7.922 kB / 1.234 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.8973, allocations: 8 kB / 1.234 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007844/0.8981, allocations: 457.7 kB / 1.234 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.8982, allocations: 128.8 kB / 1.234 GB, free: 2.766 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.8982, allocations: 8 kB / 1.234 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.8984, allocations: 15.98 kB / 1.234 GB, free: 2.742 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.012e-05/0.8985, allocations: 23.8 kB / 1.234 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.8985, allocations: 4 kB / 1.234 GB, free: 2.715 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003024/0.8988, allocations: 291.2 kB / 1.235 GB, free: 2.434 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8988, allocations: 0 / 1.235 GB, free: 2.434 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005071/0.8993, allocations: 131.7 kB / 1.235 GB, free: 2.305 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (limPID.I.y,limPID.D.x,limPI.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001136/0.9005, allocations: 0.9975 MB / 1.236 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008487/0.9013, allocations: 381.6 kB / 1.236 GB, free: 0.8945 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.9013, allocations: 3.984 kB / 1.236 GB, free: 0.8906 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.9015, allocations: 97.02 kB / 1.236 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.9021, allocations: 72.31 kB / 1.236 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005007/0.9071, allocations: 3.43 MB / 1.24 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.9075, allocations: 0.7999 MB / 1.24 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001747/0.9077, allocations: 43.27 kB / 1.241 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.9079, allocations: 135.4 kB / 1.241 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.9079, allocations: 3.938 kB / 1.241 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.9334, allocations: 6.846 MB / 1.247 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.118/9.051, allocations: 16.31 kB / 1.247 GB, free: 5.426 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDInitialState.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDInitialState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDInitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches