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.004611/0.004611, allocations: 96.97 kB / 15.73 MB, free: 6.031 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.001288/0.001288, allocations: 196.4 kB / 16.68 MB, free: 5.961 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 71.88 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2942, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquationSensibleLatent): time 0.6994/0.9937, allocations: 160.2 MB / 1.398 GB, free: 14.4 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.005278/0.999, allocations: 3.802 MB / 1.402 GB, free: 11.32 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002539/0.9993, allocations: 12.16 kB / 1.402 GB, free: 11.32 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0005777/0.9999, allocations: 189 kB / 1.402 GB, free: 11.16 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.001912/1.002, allocations: 0.8439 MB / 1.403 GB, free: 10.51 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009391/1.003, allocations: 427.4 kB / 1.403 GB, free: 10.21 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.001183/1.004, allocations: 1.024 MB / 1.404 GB, free: 9.617 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004158/1.004, allocations: 289.6 kB / 1.404 GB, free: 9.438 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/1.005, allocations: 0.571 MB / 1.405 GB, free: 9.09 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008204/1.006, allocations: 313 kB / 1.405 GB, free: 8.91 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 6.4e-05/1.006, allocations: 30.09 kB / 1.405 GB, free: 8.91 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001217/1.008, allocations: 0.7112 MB / 1.406 GB, free: 8.523 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0001876/1.008, allocations: 155 kB / 1.406 GB, free: 8.426 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.000251/1.008, allocations: 215.8 kB / 1.406 GB, free: 8.289 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.00109/1.009, allocations: 0.7535 MB / 1.407 GB, free: 7.816 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/1.009, allocations: 1.406 kB / 1.407 GB, free: 7.816 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.342e-06/1.009, allocations: 0 / 1.407 GB, free: 7.816 MB / 1.107 GB Notification: Performance of Transformations before backend: time 7.163e-06/1.009, allocations: 0 / 1.407 GB, free: 7.816 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.001153/1.01, allocations: 0.7544 MB / 1.408 GB, free: 7.168 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/1.01, allocations: 10.25 kB / 1.408 GB, free: 7.168 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.573e-05/1.01, allocations: 66.23 kB / 1.408 GB, free: 7.105 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/1.011, allocations: 152.5 kB / 1.408 GB, free: 7.035 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/1.012, allocations: 401.5 kB / 1.408 GB, free: 6.691 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/1.012, allocations: 29.09 kB / 1.408 GB, free: 6.676 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.462e-05/1.012, allocations: 28.84 kB / 1.408 GB, free: 6.668 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006024/1.013, allocations: 330.3 kB / 1.409 GB, free: 6.477 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/1.013, allocations: 1.156 kB / 1.409 GB, free: 6.477 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/1.013, allocations: 10.28 kB / 1.409 GB, free: 6.469 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/1.013, allocations: 6.812 kB / 1.409 GB, free: 6.469 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005793/1.013, allocations: 308.4 kB / 1.409 GB, free: 6.328 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/1.015, allocations: 1.204 MB / 1.41 GB, free: 5.301 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004911/1.016, allocations: 287 kB / 1.41 GB, free: 5.148 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/1.016, allocations: 179.6 kB / 1.411 GB, free: 5.066 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/1.016, allocations: 194.7 kB / 1.411 GB, free: 4.863 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/1.016, allocations: 41.34 kB / 1.411 GB, free: 4.816 MB / 1.107 GB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/1.016, allocations: 0 / 1.411 GB, free: 4.816 MB / 1.107 GB Notification: Performance of matching and sorting (n=35): time 0.002167/1.019, allocations: 1.036 MB / 1.412 GB, free: 4.156 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/1.019, allocations: 54.59 kB / 1.412 GB, free: 4.094 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/1.019, allocations: 312.6 kB / 1.412 GB, free: 3.895 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/1.019, allocations: 36.27 kB / 1.412 GB, free: 3.855 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.000137/1.019, allocations: 186.5 kB / 1.412 GB, free: 3.688 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/1.019, allocations: 128.9 kB / 1.413 GB, free: 3.574 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/1.019, allocations: 60.2 kB / 1.413 GB, free: 3.535 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001679/1.02, allocations: 351.6 kB / 1.413 GB, free: 3.191 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/1.02, allocations: 112.4 kB / 1.413 GB, free: 3.141 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/1.02, allocations: 164.1 kB / 1.413 GB, free: 3.047 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.001871/1.022, allocations: 0.7644 MB / 1.414 GB, free: 2.617 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/1.022, allocations: 1.406 kB / 1.414 GB, free: 2.617 MB / 1.107 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006249/1.023, allocations: 357.7 kB / 1.414 GB, free: 2.434 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.023, allocations: 4.812 kB / 1.414 GB, free: 2.434 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/1.023, allocations: 5.469 kB / 1.414 GB, free: 2.43 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/1.023, allocations: 5.156 kB / 1.414 GB, free: 2.426 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/1.023, allocations: 63.53 kB / 1.414 GB, free: 2.414 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/1.023, allocations: 2.25 kB / 1.414 GB, free: 2.414 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/1.023, allocations: 20.27 kB / 1.414 GB, free: 2.402 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/1.023, allocations: 7.938 kB / 1.414 GB, free: 2.402 MB / 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.000206/1.024, allocations: 174.1 kB / 1.415 GB, free: 2.25 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.843e-05/1.024, allocations: 42.27 kB / 1.415 GB, free: 2.227 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/1.024, allocations: 53.73 kB / 1.415 GB, free: 2.18 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/1.024, allocations: 7.281 kB / 1.415 GB, free: 2.176 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/1.024, allocations: 1.594 kB / 1.415 GB, free: 2.176 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006027/1.024, allocations: 404.9 kB / 1.415 GB, free: 1.898 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/1.026, allocations: 1.072 MB / 1.416 GB, free: 1.062 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/1.026, allocations: 4.969 kB / 1.416 GB, free: 1.062 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/1.027, allocations: 82.95 kB / 1.416 GB, free: 1.043 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/1.027, allocations: 6.375 kB / 1.416 GB, free: 1.043 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/1.027, allocations: 9.969 kB / 1.416 GB, free: 1.039 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.839e-06/1.027, allocations: 13.77 kB / 1.416 GB, free: 1.031 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.027, allocations: 8.312 kB / 1.416 GB, free: 1.027 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/1.028, allocations: 0.6892 MB / 1.417 GB, free: 0.5273 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/1.028, allocations: 141.6 kB / 1.417 GB, free: 404 kB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/1.028, allocations: 18.8 kB / 1.417 GB, free: 392 kB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/1.028, allocations: 12.25 kB / 1.417 GB, free: 388 kB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/1.028, allocations: 30.34 kB / 1.417 GB, free: 372 kB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/1.028, allocations: 28.36 kB / 1.417 GB, free: 356 kB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0002448/1.029, allocations: 234.2 kB / 1.417 GB, free: 200 kB / 1.107 GB Notification: Performance of sort global known variables: time 1.3e-07/1.029, allocations: 0 / 1.417 GB, free: 200 kB / 1.107 GB Notification: Performance of remove unused functions: time 0.0004679/1.029, allocations: 112.7 kB / 1.417 GB, free: 184 kB / 1.107 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.001569/1.031, allocations: 1.304 MB / 1.419 GB, free: 15.11 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.000595/1.031, allocations: 310.8 kB / 1.419 GB, free: 14.97 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.031, allocations: 0 / 1.419 GB, free: 14.97 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0002975/1.032, allocations: 169.9 kB / 1.419 GB, free: 14.89 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/1.033, allocations: 223.6 kB / 1.419 GB, free: 14.79 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004736/1.038, allocations: 3.681 MB / 1.423 GB, free: 12.15 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/1.038, allocations: 0.8228 MB / 1.424 GB, free: 11.39 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0003277/1.038, allocations: 97.52 kB / 1.424 GB, free: 11.34 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/1.039, allocations: 122.1 kB / 1.424 GB, free: 11.25 MB / 1.123 GB Notification: Performance of SimCode: time 3.51e-07/1.039, allocations: 0 / 1.424 GB, free: 11.25 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03582/1.074, allocations: 11.2 MB / 1.435 GB, free: 1.133 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/9.358, allocations: 6.688 kB / 1.435 GB, free: 1.129 MB / 1.123 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 400 --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