Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.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.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent,fileNamePrefix="Buildings_11_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent",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.001961/0.001962, 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.0022/0.0022, allocations: 195.8 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.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.841/2.841, allocations: 469.8 MB / 0.7424 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.19 kB / 0.9087 GB, free: 34.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2664, allocations: 159.1 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent): time 0.1884/0.4548, allocations: 160.1 MB / 1.22 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005473/0.4603, allocations: 3.81 MB / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.4606, allocations: 11.94 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005527/0.4612, allocations: 174.7 kB / 1.224 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.4631, allocations: 0.8439 MB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009362/0.464, allocations: 428.2 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0012/0.4652, allocations: 1.022 MB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.4657, allocations: 288.9 kB / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005923/0.4663, allocations: 406.4 kB / 1.227 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008173/0.4671, allocations: 318.3 kB / 1.228 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.4672, allocations: 32 kB / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.4685, allocations: 0.7053 MB / 1.228 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.4687, allocations: 163.6 kB / 1.228 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.4689, allocations: 215 kB / 1.229 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.47, allocations: 0.744 MB / 1.229 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.47, allocations: 0 / 1.229 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.47, allocations: 0 / 1.229 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.47, allocations: 0 / 1.229 GB, free: 4.336 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00116/0.4712, allocations: 0.7323 MB / 1.23 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.4712, allocations: 16.03 kB / 1.23 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.386e-05/0.4713, allocations: 62.53 kB / 1.23 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.4724, allocations: 143.3 kB / 1.23 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.473, allocations: 386.5 kB / 1.231 GB, free: 2.91 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.473, allocations: 28.66 kB / 1.231 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.917e-05/0.4731, allocations: 35.91 kB / 1.231 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.4737, allocations: 326 kB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.4737, allocations: 0 / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.4737, allocations: 12 kB / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.4738, allocations: 8 kB / 1.231 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005818/0.4743, allocations: 310.3 kB / 1.231 GB, free: 2.199 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.001807/0.4762, allocations: 1.209 MB / 1.233 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.4767, allocations: 295.3 kB / 1.233 GB, free: 0.582 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.477, allocations: 187.5 kB / 1.233 GB, free: 408 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003014/0.4773, allocations: 194.5 kB / 1.233 GB, free: 176 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.4774, allocations: 38.78 kB / 1.233 GB, free: 128 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/0.4774, allocations: 4 kB / 1.233 GB, free: 124 kB / 0.9825 GB Notification: Performance of matching and sorting (n=35): time 0.00222/0.4796, allocations: 1.026 MB / 1.234 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.4797, allocations: 59.41 kB / 1.234 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.48, allocations: 312.5 kB / 1.235 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.4801, allocations: 37.7 kB / 1.235 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.4802, allocations: 176.7 kB / 1.235 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.4803, allocations: 126.1 kB / 1.235 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.4805, allocations: 61.69 kB / 1.235 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4806, allocations: 346.8 kB / 1.235 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.4809, allocations: 123.7 kB / 1.235 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.4812, allocations: 158.5 kB / 1.236 GB, free: 13.61 MB / 0.9981 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: dynBal.medium.p = dynBal.p_start (sin.p = dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.001943/0.4831, allocations: 0.754 MB / 1.236 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.4831, allocations: 0 / 1.236 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006615/0.4838, allocations: 368.9 kB / 1.237 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.4838, allocations: 4 kB / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.4838, allocations: 0 / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4839, allocations: 7.938 kB / 1.237 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.4842, allocations: 59.91 kB / 1.237 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.4842, allocations: 4 kB / 1.237 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.4846, allocations: 19.98 kB / 1.237 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.4846, allocations: 12.03 kB / 1.237 GB, free: 12.36 MB / 0.9981 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: dynBal.medium.p = dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (37): * Single equations (assignments): 37 * 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.0002173/0.4848, allocations: 173.8 kB / 1.237 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.743e-05/0.4849, allocations: 31.62 kB / 1.237 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.485, allocations: 56 kB / 1.237 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.485, allocations: 4 kB / 1.237 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4851, allocations: 0 / 1.237 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006147/0.4857, allocations: 408.2 kB / 1.237 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.4874, allocations: 1.065 MB / 1.238 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4875, allocations: 4 kB / 1.238 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.4878, allocations: 80.36 kB / 1.239 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.4879, allocations: 8 kB / 1.239 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.4879, allocations: 16 kB / 1.239 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-05/0.4879, allocations: 15.88 kB / 1.239 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4879, allocations: 4 kB / 1.239 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.489, allocations: 0.684 MB / 1.239 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.4892, allocations: 152.5 kB / 1.239 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.831e-05/0.4892, allocations: 11.94 kB / 1.239 GB, free: 9.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.4896, allocations: 19.98 kB / 1.239 GB, free: 9.426 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/0.4897, allocations: 35.91 kB / 1.239 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.4897, allocations: 19.98 kB / 1.239 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002515/0.49, allocations: 231 kB / 1.24 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.49, allocations: 0 / 1.24 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000479/0.4904, allocations: 112 kB / 1.24 GB, free: 9.035 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (dynBal.medium.Xi[1],dynBal.U) * 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 (35): * Single equations (assignments): 35 * 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.001615/0.4921, allocations: 1.293 MB / 1.241 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006565/0.4927, allocations: 329.2 kB / 1.241 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4927, allocations: 0 / 1.241 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.4931, allocations: 160.7 kB / 1.241 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4943, allocations: 223.5 kB / 1.242 GB, free: 6.984 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.4993, allocations: 3.702 MB / 1.245 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.4998, allocations: 0.8235 MB / 1.246 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003926/0.5002, allocations: 103.2 kB / 1.246 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.5004, allocations: 119.4 kB / 1.246 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/0.5004, allocations: 4 kB / 1.246 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4293/0.9297, allocations: 11.07 MB / 1.257 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.857, allocations: 8.281 kB / 1.257 GB, free: 187.6 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent_res.csv --start-time 0 --stop-time 2700 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.08 Buildings_11_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches