Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent",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.001143/0.001143, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009171/0.009171, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.363/1.363, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.497/2.497, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.000372, allocations: 10.62 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3113, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.7855/1.097, allocations: 248.2 MB / 1.301 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02024/1.117, allocations: 17.95 MB / 1.319 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003369/1.12, allocations: 71.44 kB / 1.319 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002444/1.123, allocations: 0.9086 MB / 1.32 GB, free: 1.996 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009059/1.132, allocations: 3.584 MB / 1.323 GB, free: 1.82 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003849/1.136, allocations: 1.637 MB / 1.325 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.007051/1.143, allocations: 6.8 MB / 1.331 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/1.145, allocations: 1.511 MB / 1.333 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003562/1.148, allocations: 1.826 MB / 1.335 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002865/1.151, allocations: 1.477 MB / 1.336 GB, free: 1.461 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002373/1.152, allocations: 70.22 kB / 1.336 GB, free: 1.461 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005528/1.157, allocations: 2.698 MB / 1.339 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006692/1.158, allocations: 470.7 kB / 1.339 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001442/1.159, allocations: 0.998 MB / 1.34 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005329/1.165, allocations: 3.629 MB / 1.344 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.165, allocations: 0 / 1.344 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.164e-06/1.165, allocations: 0 / 1.344 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.67e-05/1.165, allocations: 0 / 1.344 GB, free: 0.793 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004186/1.169, allocations: 2.102 MB / 1.346 GB, free: 15.65 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/1.169, allocations: 13.62 kB / 1.346 GB, free: 15.65 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002882/1.169, allocations: 204 kB / 1.346 GB, free: 15.61 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/1.171, allocations: 382.6 kB / 1.346 GB, free: 15.48 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/1.173, allocations: 1.434 MB / 1.348 GB, free: 15.03 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.374e-05/1.173, allocations: 108.2 kB / 1.348 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/1.173, allocations: 142.1 kB / 1.348 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/1.176, allocations: 1.512 MB / 1.349 GB, free: 14.82 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/1.176, allocations: 2.438 kB / 1.349 GB, free: 14.82 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.176, allocations: 61.34 kB / 1.35 GB, free: 14.82 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.208e-05/1.176, allocations: 50.36 kB / 1.35 GB, free: 14.81 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/1.178, allocations: 1.165 MB / 1.351 GB, free: 14.79 MB / 1.014 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.008229/1.186, allocations: 7.192 MB / 1.358 GB, free: 10.79 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/1.188, allocations: 0.8352 MB / 1.359 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006868/1.188, allocations: 456.9 kB / 1.359 GB, free: 10.63 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009085/1.189, allocations: 0.7287 MB / 1.36 GB, free: 9.879 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/1.189, allocations: 44.75 kB / 1.36 GB, free: 9.84 MB / 1.014 GB Notification: Performance of pre-optimization done (n=74): time 3.417e-06/1.189, allocations: 3.938 kB / 1.36 GB, free: 9.836 MB / 1.014 GB Notification: Performance of matching and sorting (n=74): time 0.006393/1.196, allocations: 2.144 MB / 1.362 GB, free: 9.273 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/1.196, allocations: 65.12 kB / 1.362 GB, free: 9.203 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/1.197, allocations: 1.31 MB / 1.363 GB, free: 8.828 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-05/1.198, allocations: 44.52 kB / 1.363 GB, free: 8.797 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000571/1.198, allocations: 0.8021 MB / 1.364 GB, free: 8.418 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/1.198, allocations: 256.7 kB / 1.364 GB, free: 8.234 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.935e-05/1.199, allocations: 80.86 kB / 1.364 GB, free: 8.203 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001413/1.199, allocations: 336.9 kB / 1.365 GB, free: 7.891 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005706/1.199, allocations: 336.6 kB / 1.365 GB, free: 7.832 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007532/1.2, allocations: 0.5743 MB / 1.366 GB, free: 7.516 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/1.201, allocations: 0.8854 MB / 1.366 GB, free: 7.262 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/1.201, allocations: 6.875 kB / 1.366 GB, free: 7.258 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002449/1.204, allocations: 1.287 MB / 1.368 GB, free: 6.945 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001771/1.204, allocations: 230.5 kB / 1.368 GB, free: 6.684 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.204, allocations: 9.094 kB / 1.368 GB, free: 6.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/1.206, allocations: 420.3 kB / 1.368 GB, free: 6.551 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005902/1.207, allocations: 157.3 kB / 1.368 GB, free: 6.527 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/1.208, allocations: 2.061 MB / 1.37 GB, free: 4.883 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/1.21, allocations: 185 kB / 1.371 GB, free: 4.797 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.34e-05/1.21, allocations: 41.14 kB / 1.371 GB, free: 4.793 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/1.21, allocations: 2.938 kB / 1.371 GB, free: 4.793 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001743/1.211, allocations: 1.068 MB / 1.372 GB, free: 4.613 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.211, allocations: 5.125 kB / 1.372 GB, free: 4.613 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/1.213, allocations: 369.2 kB / 1.372 GB, free: 4.508 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/1.213, allocations: 154.2 kB / 1.372 GB, free: 4.488 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/1.217, allocations: 3.864 MB / 1.376 GB, free: 1.133 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/1.218, allocations: 179.5 kB / 1.376 GB, free: 1.051 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.645e-05/1.218, allocations: 32.48 kB / 1.376 GB, free: 1.051 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,21), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008991/1.219, allocations: 488.4 kB / 1.377 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003432/1.22, allocations: 151 kB / 1.377 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00288/1.222, allocations: 1.22 MB / 1.378 GB, free: 160 kB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/1.222, allocations: 9.719 kB / 1.378 GB, free: 156 kB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/1.222, allocations: 0 / 1.378 GB, free: 156 kB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00236/1.225, allocations: 1.308 MB / 1.379 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/1.23, allocations: 2.779 MB / 1.382 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/1.23, allocations: 15.06 kB / 1.382 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/1.23, allocations: 101.6 kB / 1.382 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/1.232, allocations: 369.4 kB / 1.382 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/1.232, allocations: 13.28 kB / 1.382 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/1.233, allocations: 2.034 MB / 1.384 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.234, allocations: 2.906 kB / 1.384 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/1.235, allocations: 1.226 MB / 1.386 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007228/1.236, allocations: 350 kB / 1.386 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/1.236, allocations: 14.12 kB / 1.386 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/1.238, allocations: 116.5 kB / 1.386 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/1.238, allocations: 60.27 kB / 1.386 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.172e-05/1.238, allocations: 31.39 kB / 1.386 GB, free: 10.24 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001496/1.239, allocations: 0.8854 MB / 1.387 GB, free: 9.762 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.2e-07/1.239, allocations: 0 / 1.387 GB, free: 9.762 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002908/1.242, allocations: 0.9003 MB / 1.388 GB, free: 9.57 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,20), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003151/1.246, allocations: 2.016 MB / 1.39 GB, free: 8.207 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003349/1.249, allocations: 1.677 MB / 1.392 GB, free: 7.375 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.249, allocations: 3.469 kB / 1.392 GB, free: 7.375 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/1.25, allocations: 481 kB / 1.392 GB, free: 7.184 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004511/1.254, allocations: 0.7851 MB / 1.393 GB, free: 6.789 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/1.277, allocations: 12.22 MB / 1.405 GB, free: 13.95 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/1.278, allocations: 1.352 MB / 1.406 GB, free: 12.57 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001566/1.28, allocations: 319 kB / 1.406 GB, free: 12.25 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008725/1.281, allocations: 0.6423 MB / 1.407 GB, free: 11.61 MB / 1.045 GB Notification: Performance of SimCode: time 1.022e-06/1.281, allocations: 0 / 1.407 GB, free: 11.61 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07538/1.356, allocations: 43.13 MB / 1.449 GB, free: 1.18 MB / 1.076 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/1.356, allocations: 309.4 kB / 1.449 GB, free: 0.7969 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.956/4.312, allocations: 0 / 1.449 GB, free: 0.7969 MB / 1.076 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches