Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.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.Examples.Tutorial.SpaceCooling.System1,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_SpaceCooling_System1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System1,fileNamePrefix="Buildings_latest_Buildings_Examples_Tutorial_SpaceCooling_System1",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.00113/0.00113, allocations: 108 kB / 15.61 MB, free: 152 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.00118/0.00118, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.63/2.63, allocations: 469.4 MB / 0.742 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.77 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2506, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SpaceCooling.System1): time 0.1489/0.3995, allocations: 162.4 MB / 1.222 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0039/0.4034, allocations: 2.918 MB / 1.225 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.4037, allocations: 15.94 kB / 1.225 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005748/0.4043, allocations: 202.8 kB / 1.225 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.4058, allocations: 0.7738 MB / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006494/0.4065, allocations: 342.1 kB / 1.226 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009151/0.4074, allocations: 0.9351 MB / 1.227 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003108/0.4078, allocations: 264 kB / 1.228 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004074/0.4082, allocations: 330.7 kB / 1.228 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006769/0.4089, allocations: 294 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.4089, allocations: 32 kB / 1.228 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009574/0.4099, allocations: 0.6391 MB / 1.229 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.41, allocations: 127.7 kB / 1.229 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.4102, allocations: 215 kB / 1.229 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008393/0.4111, allocations: 0.7478 MB / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.4111, allocations: 0 / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4111, allocations: 0 / 1.23 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.4111, allocations: 8 kB / 1.23 GB, free: 3.656 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009806/0.4121, allocations: 0.7088 MB / 1.231 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.4122, allocations: 8.031 kB / 1.231 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.572e-05/0.4122, allocations: 58.55 kB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009824/0.4132, allocations: 139.4 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.4138, allocations: 410.2 kB / 1.231 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.4138, allocations: 16.56 kB / 1.231 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.4138, allocations: 24 kB / 1.231 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004178/0.4143, allocations: 287.6 kB / 1.231 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4143, allocations: 0 / 1.231 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.4143, allocations: 12 kB / 1.231 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.4144, allocations: 12.55 kB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.4147, allocations: 194.1 kB / 1.232 GB, free: 1.703 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.4163, allocations: 1.326 MB / 1.233 GB, free: 240 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/0.4166, allocations: 190.8 kB / 1.233 GB, free: 40 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.4168, allocations: 92.91 kB / 1.233 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.4168, allocations: 0 / 1.233 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.4169, allocations: 34.56 kB / 1.233 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 1.052e-06/0.4169, allocations: 3.938 kB / 1.233 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.0008922/0.4178, allocations: 400.6 kB / 1.234 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.4178, allocations: 55.41 kB / 1.234 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.4181, allocations: 300.5 kB / 1.234 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.4181, allocations: 33.7 kB / 1.234 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.4182, allocations: 184.1 kB / 1.234 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.917e-05/0.4183, allocations: 74.92 kB / 1.234 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.906e-05/0.4184, allocations: 49.55 kB / 1.234 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4185, allocations: 342.8 kB / 1.235 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.4186, allocations: 63.98 kB / 1.235 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.4187, allocations: 114 kB / 1.235 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.419, allocations: 188 kB / 1.235 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.419, allocations: 7.938 kB / 1.235 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003481/0.4193, allocations: 255 kB / 1.235 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.4194, allocations: 4 kB / 1.235 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4194, allocations: 0 / 1.235 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.4194, allocations: 4 kB / 1.235 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.4196, allocations: 47.92 kB / 1.235 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.4196, allocations: 4 kB / 1.235 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.4199, allocations: 19.73 kB / 1.235 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.4199, allocations: 12 kB / 1.235 GB, free: 13.67 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.00014/0.42, allocations: 165.8 kB / 1.236 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.4201, allocations: 31.66 kB / 1.236 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.482e-05/0.4202, allocations: 43.08 kB / 1.236 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.4202, allocations: 0 / 1.236 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4202, allocations: 0 / 1.236 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.4202, allocations: 3.984 kB / 1.236 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.4207, allocations: 397.3 kB / 1.236 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4207, allocations: 7.984 kB / 1.236 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.4209, allocations: 39.86 kB / 1.236 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/0.4211, allocations: 44.83 kB / 1.236 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.4211, allocations: 4 kB / 1.236 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.4222, allocations: 1.511 MB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4223, allocations: 3.984 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.4228, allocations: 396.9 kB / 1.238 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.4229, allocations: 128.8 kB / 1.238 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.423, allocations: 11.94 kB / 1.238 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.4232, allocations: 9.547 kB / 1.238 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.342e-05/0.4233, allocations: 7.984 kB / 1.238 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.4233, allocations: 12 kB / 1.238 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002004/0.4235, allocations: 215 kB / 1.238 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4235, allocations: 0 / 1.238 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004018/0.4239, allocations: 103.8 kB / 1.238 GB, free: 10.32 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008251/0.4247, allocations: 0.9537 MB / 1.239 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003051/0.4251, allocations: 175.8 kB / 1.239 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4251, allocations: 0 / 1.239 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.4254, allocations: 198.6 kB / 1.24 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000952/0.4263, allocations: 201.3 kB / 1.24 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.4294, allocations: 2.934 MB / 1.243 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.4297, allocations: 0.7995 MB / 1.244 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002468/0.43, allocations: 59.25 kB / 1.244 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.4301, allocations: 107.4 kB / 1.244 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of SimCode: time 3.4e-07/0.4301, allocations: 0 / 1.244 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4328/0.8629, allocations: 8.907 MB / 1.252 GB, free: 188.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.955/9.818, allocations: 4.641 kB / 1.252 GB, free: 188.7 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1_res.csv --start-time 0 --stop-time 10800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.32 Buildings_latest_Buildings_Examples_Tutorial_SpaceCooling_System1.fmu > Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_SpaceCooling_System1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.SpaceCooling.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches