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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.001549/0.001549, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001628/0.001628, allocations: 191.9 kB / 16.25 MB, free: 6.637 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.694/2.694, allocations: 482.4 MB / 0.7544 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 65.25 kB / 0.9235 GB, free: 29.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2646, allocations: 162.2 MB / 1.082 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent): time 0.1654/0.43, allocations: 157.9 MB / 1.236 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.004935/0.435, allocations: 3.786 MB / 1.24 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.4353, allocations: 11.94 kB / 1.24 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000536/0.4359, allocations: 155.1 kB / 1.24 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.4377, allocations: 0.8015 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009052/0.4386, allocations: 386.7 kB / 1.241 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001244/0.4399, allocations: 1.026 MB / 1.242 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.4403, allocations: 284.9 kB / 1.242 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.4414, allocations: 0.576 MB / 1.243 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008453/0.4422, allocations: 328.6 kB / 1.243 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.607e-05/0.4423, allocations: 32 kB / 1.243 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.4434, allocations: 0.7403 MB / 1.244 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.4436, allocations: 167.6 kB / 1.244 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.4438, allocations: 218.9 kB / 1.244 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009855/0.4448, allocations: 0.7867 MB / 1.245 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4448, allocations: 8 kB / 1.245 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.172e-06/0.4449, allocations: 3.938 kB / 1.245 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.381e-06/0.4449, allocations: 0 / 1.245 GB, free: 5.695 MB / 0.9981 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.001058/0.4459, allocations: 0.7419 MB / 1.246 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.446, allocations: 8.031 kB / 1.246 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.64e-05/0.446, allocations: 66.53 kB / 1.246 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009743/0.447, allocations: 151.4 kB / 1.246 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.4476, allocations: 378.4 kB / 1.246 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.4476, allocations: 20.66 kB / 1.247 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.197e-05/0.4477, allocations: 36 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.4482, allocations: 326 kB / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.4483, allocations: 0 / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.4483, allocations: 12 kB / 1.247 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4483, allocations: 8 kB / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005338/0.4488, allocations: 318.3 kB / 1.247 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/0.4505, allocations: 1.205 MB / 1.248 GB, free: 2.242 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004574/0.451, allocations: 279.4 kB / 1.249 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.4513, allocations: 189.3 kB / 1.249 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002693/0.4515, allocations: 182.5 kB / 1.249 GB, free: 1.559 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.4516, allocations: 42.83 kB / 1.249 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 3.737e-06/0.4516, allocations: 0 / 1.249 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of matching and sorting (n=35): time 0.002018/0.4536, allocations: 1.035 MB / 1.25 GB, free: 432 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.4537, allocations: 59.39 kB / 1.25 GB, free: 360 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.454, allocations: 312.5 kB / 1.25 GB, free: 40 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.4188/0.8728, allocations: 34.5 kB / 1.25 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.873, allocations: 173.6 kB / 1.251 GB, free: 176 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.8731, allocations: 122.4 kB / 1.251 GB, free: 176 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.8733, allocations: 61.31 kB / 1.251 GB, free: 176 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.8733, allocations: 348.2 kB / 1.251 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.8736, allocations: 115.3 kB / 1.251 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.8739, allocations: 166 kB / 1.251 GB, free: 175.7 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.001767/0.8756, allocations: 0.7567 MB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.8756, allocations: 0.7188 kB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006109/0.8763, allocations: 359.8 kB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.8763, allocations: 4.938 kB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.8763, allocations: 0.625 kB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.8763, allocations: 6.688 kB / 1.252 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.8766, allocations: 70.75 kB / 1.253 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.8766, allocations: 1.812 kB / 1.253 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.877, allocations: 24.17 kB / 1.253 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.8771, allocations: 13.52 kB / 1.253 GB, free: 175.5 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.000168/0.8772, allocations: 171.8 kB / 1.253 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.8773, allocations: 38.59 kB / 1.253 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.89e-05/0.8774, allocations: 58.59 kB / 1.253 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.8774, allocations: 3.641 kB / 1.253 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.8774, allocations: 5.875 kB / 1.253 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005249/0.878, allocations: 412.8 kB / 1.253 GB, free: 175 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.8795, allocations: 1.06 MB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.8795, allocations: 4.156 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.8798, allocations: 82.83 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.8798, allocations: 5.5 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.8799, allocations: 15.22 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-06/0.8799, allocations: 9.344 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.8799, allocations: 8.344 kB / 1.254 GB, free: 174.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000822/0.8807, allocations: 0.685 MB / 1.255 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.8809, allocations: 140.5 kB / 1.255 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.8809, allocations: 17.09 kB / 1.255 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/0.8813, allocations: 32.67 kB / 1.255 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.8814, allocations: 33.78 kB / 1.255 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.8814, allocations: 12.98 kB / 1.255 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002163/0.8816, allocations: 234 kB / 1.255 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8816, allocations: 4.75 kB / 1.255 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000445/0.8821, allocations: 108.7 kB / 1.256 GB, free: 173.7 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.0012/0.8833, allocations: 1.284 MB / 1.257 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006003/0.8839, allocations: 325.6 kB / 1.257 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8839, allocations: 1.125 kB / 1.257 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.8842, allocations: 178.1 kB / 1.257 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.8853, allocations: 230.1 kB / 1.258 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004364/0.8897, allocations: 3.807 MB / 1.261 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.89, allocations: 0.8218 MB / 1.262 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003918/0.8904, allocations: 105 kB / 1.262 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.8905, allocations: 120.6 kB / 1.262 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.8905, allocations: 0 / 1.262 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3437/1.234, allocations: 10.91 MB / 1.273 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/1.234, allocations: 281.3 kB / 1.273 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.219/4.453, allocations: 0 / 1.273 GB, free: 168.1 MB / 0.9981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquationSensibleLatent_fmu --startTime=0 --stopTime=2700 --timeout=400 --tolerance=1e-06 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.mat","/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