Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-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.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent,fileNamePrefix="Buildings_latest_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.007072/0.007072, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001601/0.001601, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.323/1.323, 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.1.0-master/package.mo): time 2.505/2.505, allocations: 469.4 MB / 0.7421 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 71.89 kB / 1.064 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9093/0.9106, allocations: 159.1 MB / 1.22 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent): time 0.1636/1.074, allocations: 160.1 MB / 1.376 GB, free: 1.488 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.006052/1.08, allocations: 3.82 MB / 1.38 GB, free: 13.66 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006552/1.081, allocations: 15.88 kB / 1.38 GB, free: 13.64 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0009132/1.082, allocations: 182.7 kB / 1.38 GB, free: 13.46 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.002552/1.085, allocations: 0.8751 MB / 1.381 GB, free: 12.59 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.001168/1.086, allocations: 429 kB / 1.381 GB, free: 12.17 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.001499/1.087, allocations: 1.018 MB / 1.382 GB, free: 11.15 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000571/1.088, allocations: 292.9 kB / 1.383 GB, free: 10.86 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008571/1.089, allocations: 422.4 kB / 1.383 GB, free: 10.45 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009916/1.09, allocations: 328.7 kB / 1.383 GB, free: 10.12 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 9.832e-05/1.09, allocations: 31.94 kB / 1.383 GB, free: 10.09 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/1.092, allocations: 0.717 MB / 1.384 GB, free: 9.375 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0002487/1.092, allocations: 163.6 kB / 1.384 GB, free: 9.215 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0003606/1.092, allocations: 210.9 kB / 1.384 GB, free: 9.008 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001611/1.094, allocations: 0.7562 MB / 1.385 GB, free: 8.25 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/1.094, allocations: 0 / 1.385 GB, free: 8.25 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.523e-06/1.094, allocations: 4 kB / 1.385 GB, free: 8.246 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.444e-05/1.094, allocations: 0 / 1.385 GB, free: 8.246 MB / 1.107 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.001244/1.095, allocations: 0.755 MB / 1.386 GB, free: 7.441 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/1.095, allocations: 8.625 kB / 1.386 GB, free: 7.434 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.488e-05/1.095, allocations: 66.53 kB / 1.386 GB, free: 7.359 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/1.096, allocations: 151.6 kB / 1.386 GB, free: 7.211 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007355/1.097, allocations: 410.6 kB / 1.386 GB, free: 6.77 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/1.097, allocations: 20.66 kB / 1.386 GB, free: 6.75 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/1.097, allocations: 32 kB / 1.387 GB, free: 6.719 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/1.098, allocations: 322 kB / 1.387 GB, free: 6.395 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/1.098, allocations: 0 / 1.387 GB, free: 6.395 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/1.098, allocations: 19.94 kB / 1.387 GB, free: 6.375 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/1.098, allocations: 12 kB / 1.387 GB, free: 6.363 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005319/1.098, allocations: 310.3 kB / 1.387 GB, free: 6.062 MB / 1.107 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.001794/1.1, allocations: 1.197 MB / 1.388 GB, free: 4.754 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/1.101, allocations: 279.4 kB / 1.389 GB, free: 4.473 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/1.101, allocations: 187.7 kB / 1.389 GB, free: 4.289 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002672/1.101, allocations: 198.5 kB / 1.389 GB, free: 4.059 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/1.101, allocations: 34.84 kB / 1.389 GB, free: 4.016 MB / 1.107 GB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/1.101, allocations: 0 / 1.389 GB, free: 4.016 MB / 1.107 GB Notification: Performance of matching and sorting (n=35): time 0.002169/1.104, allocations: 1.047 MB / 1.39 GB, free: 2.918 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/1.104, allocations: 55.41 kB / 1.39 GB, free: 2.852 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/1.104, allocations: 312.5 kB / 1.39 GB, free: 2.543 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/1.104, allocations: 33.7 kB / 1.39 GB, free: 2.504 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/1.104, allocations: 180.8 kB / 1.391 GB, free: 2.324 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/1.104, allocations: 126.9 kB / 1.391 GB, free: 2.199 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/1.104, allocations: 61.69 kB / 1.391 GB, free: 2.133 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.000118/1.104, allocations: 346.8 kB / 1.391 GB, free: 1.785 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/1.105, allocations: 111.9 kB / 1.391 GB, free: 1.676 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/1.105, allocations: 175.7 kB / 1.391 GB, free: 1.496 MB / 1.107 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.001732/1.107, allocations: 0.7641 MB / 1.392 GB, free: 0.707 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/1.107, allocations: 0 / 1.392 GB, free: 0.707 MB / 1.107 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000586/1.107, allocations: 357.1 kB / 1.392 GB, free: 360 kB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/1.107, allocations: 4 kB / 1.392 GB, free: 356 kB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/1.107, allocations: 0 / 1.392 GB, free: 356 kB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/1.107, allocations: 7.938 kB / 1.392 GB, free: 348 kB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/1.108, allocations: 63.91 kB / 1.393 GB, free: 284 kB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/1.108, allocations: 4 kB / 1.393 GB, free: 280 kB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/1.108, allocations: 15.98 kB / 1.393 GB, free: 264 kB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/1.108, allocations: 19.97 kB / 1.393 GB, free: 244 kB / 1.107 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.0001897/1.108, allocations: 169.8 kB / 1.393 GB, free: 64 kB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/1.108, allocations: 39.72 kB / 1.393 GB, free: 24 kB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/1.108, allocations: 60.02 kB / 1.393 GB, free: 15.96 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/1.108, allocations: 4 kB / 1.393 GB, free: 15.96 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/1.108, allocations: 0 / 1.393 GB, free: 15.96 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005391/1.109, allocations: 404.2 kB / 1.393 GB, free: 15.53 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/1.111, allocations: 1.069 MB / 1.394 GB, free: 14.36 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.111, allocations: 4 kB / 1.394 GB, free: 14.36 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/1.111, allocations: 84.3 kB / 1.394 GB, free: 14.28 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/1.111, allocations: 8 kB / 1.394 GB, free: 14.27 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/1.111, allocations: 12 kB / 1.394 GB, free: 14.26 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.059e-05/1.111, allocations: 7.938 kB / 1.394 GB, free: 14.25 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.111, allocations: 4 kB / 1.394 GB, free: 14.25 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009135/1.112, allocations: 0.6958 MB / 1.395 GB, free: 13.49 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/1.112, allocations: 144.8 kB / 1.395 GB, free: 13.33 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.991e-05/1.112, allocations: 15.94 kB / 1.395 GB, free: 13.31 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/1.113, allocations: 22.88 kB / 1.395 GB, free: 13.29 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-05/1.113, allocations: 35.95 kB / 1.395 GB, free: 13.26 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/1.113, allocations: 19.98 kB / 1.395 GB, free: 13.24 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0002291/1.113, allocations: 231 kB / 1.395 GB, free: 13.01 MB / 1.123 GB Notification: Performance of sort global known variables: time 2.4e-07/1.113, allocations: 3.938 kB / 1.395 GB, free: 13.01 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0004664/1.113, allocations: 111.9 kB / 1.396 GB, free: 12.9 MB / 1.123 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.001423/1.115, allocations: 1.296 MB / 1.397 GB, free: 11.54 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0005845/1.116, allocations: 304.2 kB / 1.397 GB, free: 11.24 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.116, allocations: 0 / 1.397 GB, free: 11.24 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0002745/1.116, allocations: 169.9 kB / 1.397 GB, free: 11.08 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/1.117, allocations: 227.6 kB / 1.398 GB, free: 10.86 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004563/1.122, allocations: 3.682 MB / 1.401 GB, free: 7.012 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/1.122, allocations: 0.8196 MB / 1.402 GB, free: 6.168 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0003452/1.122, allocations: 107.2 kB / 1.402 GB, free: 6.059 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/1.123, allocations: 123.4 kB / 1.402 GB, free: 5.938 MB / 1.123 GB Notification: Performance of SimCode: time 5.31e-07/1.123, allocations: 0 / 1.402 GB, free: 5.938 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/1.154, allocations: 11.18 MB / 1.413 GB, free: 11 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/9.288, allocations: 8.688 kB / 1.413 GB, free: 11 MB / 1.139 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent_res.csv --start-time 0 --stop-time 2700 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.08 Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches