Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.323/2.323, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 187 kB / 0.4901 GB, free: 2.254 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 223.1 MB / 0.7992 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 104.9 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 13.66 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2874, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.19/1.477, allocations: 422.7 MB / 1.642 GB, free: 12.13 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/1.478, allocations: 98.64 kB / 1.642 GB, free: 12.08 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 12.02/13.5, allocations: 2.806 GB / 4.448 GB, free: 80 MB / 1.276 GB Notification: Performance of FrontEnd: time 2.374e-06/13.5, allocations: 0 / 4.448 GB, free: 80 MB / 1.276 GB Notification: Performance of Transformations before backend: time 0.0009158/13.5, allocations: 175.4 kB / 4.448 GB, free: 79.96 MB / 1.276 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.02452/13.52, allocations: 7.165 MB / 4.455 GB, free: 76.5 MB / 1.276 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/13.52, allocations: 8.75 kB / 4.455 GB, free: 76.5 MB / 1.276 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002215/13.52, allocations: 0.5436 MB / 4.456 GB, free: 76.43 MB / 1.276 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003666/13.53, allocations: 0.7821 MB / 4.457 GB, free: 76.06 MB / 1.276 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1187/13.65, allocations: 60.99 MB / 4.516 GB, free: 72.1 MB / 1.276 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003272/13.65, allocations: 316.4 kB / 4.517 GB, free: 72.09 MB / 1.276 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/13.65, allocations: 430.3 kB / 4.517 GB, free: 72.09 MB / 1.276 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008171/13.66, allocations: 4.269 MB / 4.521 GB, free: 71.25 MB / 1.276 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/13.66, allocations: 13.34 kB / 4.521 GB, free: 71.24 MB / 1.276 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004868/13.66, allocations: 171.2 kB / 4.521 GB, free: 71.24 MB / 1.276 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/13.66, allocations: 122.7 kB / 4.521 GB, free: 71.24 MB / 1.276 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005373/13.66, allocations: 2.905 MB / 4.524 GB, free: 71.14 MB / 1.276 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.02939/13.69, allocations: 24.04 MB / 4.548 GB, free: 55.81 MB / 1.276 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/13.7, allocations: 2.962 MB / 4.551 GB, free: 53.75 MB / 1.276 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002431/13.7, allocations: 3.938 MB / 4.554 GB, free: 49.29 MB / 1.276 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.691e-05/13.7, allocations: 68.88 kB / 4.555 GB, free: 49.22 MB / 1.276 GB Notification: Performance of pre-optimization done (n=225): time 4.148e-06/13.7, allocations: 0 / 4.555 GB, free: 49.22 MB / 1.276 GB Notification: Performance of matching and sorting (n=225): time 0.01013/13.71, allocations: 4.111 MB / 4.559 GB, free: 47.41 MB / 1.276 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/13.71, allocations: 74.53 kB / 4.559 GB, free: 47.34 MB / 1.276 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008127/13.72, allocations: 3.69 MB / 4.562 GB, free: 46.04 MB / 1.276 GB Notification: Performance of collectPreVariables (initialization): time 0.0005556/13.72, allocations: 80.14 kB / 4.562 GB, free: 45.97 MB / 1.276 GB Notification: Performance of collectInitialEqns (initialization): time 0.001942/13.72, allocations: 2.78 MB / 4.565 GB, free: 43.79 MB / 1.276 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009357/13.72, allocations: 0.7792 MB / 4.566 GB, free: 43.18 MB / 1.276 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/13.72, allocations: 55.16 kB / 4.566 GB, free: 43.14 MB / 1.276 GB Notification: Performance of setup shared object (initialization): time 0.0001266/13.72, allocations: 410.3 kB / 4.566 GB, free: 42.79 MB / 1.276 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/13.72, allocations: 0.8105 MB / 4.567 GB, free: 42.48 MB / 1.276 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/13.72, allocations: 1.798 MB / 4.569 GB, free: 40.91 MB / 1.276 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/13.72, allocations: 1.099 MB / 4.57 GB, free: 40.38 MB / 1.276 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/13.72, allocations: 6.469 kB / 4.57 GB, free: 40.38 MB / 1.276 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.005962/13.73, allocations: 3.351 MB / 4.573 GB, free: 38.95 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 0.00194/13.73, allocations: 10.36 MB / 4.583 GB, free: 27.95 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/13.73, allocations: 30.08 kB / 4.583 GB, free: 27.94 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/13.73, allocations: 402.5 kB / 4.584 GB, free: 27.8 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/13.74, allocations: 0.5306 MB / 4.584 GB, free: 27.75 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/13.74, allocations: 2.686 MB / 4.587 GB, free: 25.39 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007233/13.75, allocations: 0.5525 MB / 4.587 GB, free: 25.18 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006551/13.75, allocations: 135 kB / 4.587 GB, free: 25.15 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/13.75, allocations: 5.75 kB / 4.587 GB, free: 25.15 MB / 1.276 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006137/13.75, allocations: 2.803 MB / 4.59 GB, free: 24.01 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-05/13.75, allocations: 22.12 kB / 4.59 GB, free: 24.01 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009696/13.75, allocations: 381 kB / 4.591 GB, free: 23.91 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/13.76, allocations: 0.5232 MB / 4.591 GB, free: 23.85 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007948/13.76, allocations: 7.813 MB / 4.599 GB, free: 17.07 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006025/13.77, allocations: 0.5078 MB / 4.599 GB, free: 16.88 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007071/13.77, allocations: 127.8 kB / 4.599 GB, free: 16.86 MB / 1.276 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * 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 (299): * Single equations (assignments): 295 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.004024/13.77, allocations: 1.007 MB / 4.6 GB, free: 16.2 MB / 1.276 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/13.78, allocations: 0.5123 MB / 4.601 GB, free: 15.93 MB / 1.276 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008927/13.79, allocations: 3.795 MB / 4.605 GB, free: 14.33 MB / 1.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-05/13.79, allocations: 39.27 kB / 4.605 GB, free: 14.32 MB / 1.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/13.79, allocations: 3.797 kB / 4.605 GB, free: 14.32 MB / 1.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004122/13.79, allocations: 2.612 MB / 4.607 GB, free: 13.19 MB / 1.276 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 postOpt removeSimpleEquations (simulation): time 0.02109/13.81, allocations: 8.578 MB / 4.616 GB, free: 6.461 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/13.81, allocations: 8.094 kB / 4.616 GB, free: 6.453 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/13.81, allocations: 379.1 kB / 4.616 GB, free: 6.133 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/13.81, allocations: 301.3 kB / 4.616 GB, free: 5.871 MB / 1.276 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002601/13.81, allocations: 66.03 kB / 4.616 GB, free: 5.816 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/13.82, allocations: 2.502 MB / 4.619 GB, free: 19.27 MB / 1.292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/13.82, allocations: 4.125 kB / 4.619 GB, free: 19.27 MB / 1.292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008863/13.82, allocations: 4.766 MB / 4.623 GB, free: 14.8 MB / 1.292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004919/13.83, allocations: 0.9964 MB / 4.624 GB, free: 13.94 MB / 1.292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002788/13.83, allocations: 50.52 kB / 4.624 GB, free: 13.9 MB / 1.292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00612/13.84, allocations: 437 kB / 4.625 GB, free: 13.58 MB / 1.292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005549/13.84, allocations: 156.5 kB / 4.625 GB, free: 13.48 MB / 1.292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006262/13.84, allocations: 113.8 kB / 4.625 GB, free: 13.39 MB / 1.292 GB Notification: Performance of sorting global known variables: time 0.009968/13.85, allocations: 2.819 MB / 4.628 GB, free: 11.07 MB / 1.292 GB Notification: Performance of sort global known variables: time 5.21e-07/13.85, allocations: 0 / 4.628 GB, free: 11.07 MB / 1.292 GB Notification: Performance of remove unused functions: time 0.0217/13.87, allocations: 3.59 MB / 4.631 GB, free: 7.527 MB / 1.292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.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 (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01869/13.89, allocations: 8.626 MB / 4.64 GB, free: 14.96 MB / 1.307 GB Notification: Performance of simCode: created initialization part: time 0.0104/13.9, allocations: 4.43 MB / 4.644 GB, free: 10.46 MB / 1.307 GB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/13.9, allocations: 4 kB / 4.644 GB, free: 10.46 MB / 1.307 GB Notification: Performance of simCode: created simulation system equations: time 0.003201/13.9, allocations: 1.33 MB / 4.645 GB, free: 9.129 MB / 1.307 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01537/13.92, allocations: 2.698 MB / 4.648 GB, free: 6.516 MB / 1.307 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.014/14.93, allocations: 50.91 MB / 4.698 GB, free: 75.7 MB / 1.307 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00522/14.94, allocations: 3 MB / 4.701 GB, free: 74.91 MB / 1.307 GB Notification: Performance of simCode: alias equations: time 0.008349/14.95, allocations: 1.206 MB / 4.702 GB, free: 74.86 MB / 1.307 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005739/14.95, allocations: 2.555 MB / 4.704 GB, free: 74.86 MB / 1.307 GB Notification: Performance of SimCode: time 1.032e-06/14.95, allocations: 0 / 4.704 GB, free: 74.86 MB / 1.307 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3079/15.26, allocations: 172.8 MB / 4.873 GB, free: 66.28 MB / 1.307 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/15.26, allocations: 259.7 kB / 4.873 GB, free: 65.95 MB / 1.307 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.293/24.55, allocations: 4 kB / 4.873 GB, free: 65.95 MB / 1.307 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u_res.mat does not exist to compare? outputFormat=mat