Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.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: translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.246/2.246, allocations: 393.5 MB / 408.4 MB, free: 11 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.00116/0.00116, allocations: 195.5 kB / 0.4902 GB, free: 2.246 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.598/1.598, 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.001104/0.001104, allocations: 106 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 6.938 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3434, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.738/5.081, allocations: 1.942 GB / 3.171 GB, free: 38.87 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/5.082, allocations: 97.17 kB / 3.171 GB, free: 38.78 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.781/6.863, allocations: 487.8 MB / 3.647 GB, free: 16.09 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.256e-06/6.863, allocations: 0 / 3.647 GB, free: 16.09 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002332/6.863, allocations: 51.86 kB / 3.647 GB, free: 16.04 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.006034/6.869, allocations: 1.98 MB / 3.649 GB, free: 14 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/6.87, allocations: 8.031 kB / 3.649 GB, free: 13.99 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003142/6.873, allocations: 457.2 kB / 3.65 GB, free: 13.54 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/6.874, allocations: 0.9893 MB / 3.651 GB, free: 12.51 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/6.874, allocations: 115.1 kB / 3.651 GB, free: 12.39 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/6.875, allocations: 152 kB / 3.651 GB, free: 12.25 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002583/6.877, allocations: 1.707 MB / 3.653 GB, free: 10.45 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/6.877, allocations: 3.938 kB / 3.653 GB, free: 10.45 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/6.877, allocations: 68 kB / 3.653 GB, free: 10.38 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/6.877, allocations: 40 kB / 3.653 GB, free: 10.34 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002477/6.88, allocations: 1.709 MB / 3.654 GB, free: 8.625 MB / 1.167 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.006853/6.887, allocations: 5.784 MB / 3.66 GB, free: 2.582 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/6.889, allocations: 1.508 MB / 3.662 GB, free: 1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8027/7.692, allocations: 0.881 MB / 3.662 GB, free: 303.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001911/7.694, allocations: 0.7402 MB / 3.663 GB, free: 303.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=117): time 2.434e-06/7.694, allocations: 0 / 3.663 GB, free: 303.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=117): time 0.004934/7.699, allocations: 1.805 MB / 3.665 GB, free: 303.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/7.699, allocations: 251.8 kB / 3.665 GB, free: 303.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/7.701, allocations: 0.8796 MB / 3.666 GB, free: 303.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001399/7.701, allocations: 50.11 kB / 3.666 GB, free: 303.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007199/7.702, allocations: 0.6416 MB / 3.667 GB, free: 303.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003686/7.702, allocations: 397.4 kB / 3.667 GB, free: 302.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.71e-05/7.702, allocations: 19.66 kB / 3.667 GB, free: 302.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001168/7.702, allocations: 350.9 kB / 3.667 GB, free: 302.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/7.703, allocations: 406.1 kB / 3.668 GB, free: 302.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/7.704, allocations: 0.5709 MB / 3.668 GB, free: 302.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/7.705, allocations: 482.1 kB / 3.669 GB, free: 302.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/7.705, allocations: 4.094 kB / 3.669 GB, free: 302.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003394/7.709, allocations: 1.238 MB / 3.67 GB, free: 302.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/7.709, allocations: 5.406 kB / 3.67 GB, free: 302.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/7.709, allocations: 4.156 kB / 3.67 GB, free: 302.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006998/7.71, allocations: 85.39 kB / 3.67 GB, free: 302.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/7.711, allocations: 267.2 kB / 3.67 GB, free: 302.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/7.713, allocations: 1.557 MB / 3.672 GB, free: 301 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/7.715, allocations: 155.1 kB / 3.672 GB, free: 301 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/7.715, allocations: 43.7 kB / 3.672 GB, free: 301 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0009637/7.716, allocations: 363.4 kB / 3.672 GB, free: 300.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/7.716, allocations: 131.8 kB / 3.673 GB, free: 300.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003676/7.72, allocations: 1.557 MB / 3.674 GB, free: 300.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/7.72, allocations: 13.83 kB / 3.674 GB, free: 300.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/7.72, allocations: 0 / 3.674 GB, free: 300.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/7.72, allocations: 6.703 kB / 3.674 GB, free: 300.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006313/7.726, allocations: 3.104 MB / 3.677 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/7.726, allocations: 1.906 kB / 3.677 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/7.728, allocations: 266.5 kB / 3.677 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005626/7.728, allocations: 84.38 kB / 3.677 GB, free: 300.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/7.728, allocations: 37.48 kB / 3.678 GB, free: 300.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001927/7.73, allocations: 1.573 MB / 3.679 GB, free: 299.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/7.73, allocations: 1.312 kB / 3.679 GB, free: 299.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004578/7.735, allocations: 2.091 MB / 3.681 GB, free: 298.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009618/7.736, allocations: 414.9 kB / 3.681 GB, free: 298.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/7.736, allocations: 25.23 kB / 3.682 GB, free: 298.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/7.737, allocations: 121.4 kB / 3.682 GB, free: 298.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/7.738, allocations: 85.89 kB / 3.682 GB, free: 298.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/7.738, allocations: 61.16 kB / 3.682 GB, free: 298.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001232/7.739, allocations: 0.7004 MB / 3.682 GB, free: 298.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.7e-07/7.739, allocations: 1.031 kB / 3.682 GB, free: 298.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002372/7.741, allocations: 0.6646 MB / 3.683 GB, free: 298.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (ori1.mExc,ori2.mExc) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003737/7.745, allocations: 1.845 MB / 3.685 GB, free: 298.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002807/7.748, allocations: 1.193 MB / 3.686 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/7.748, allocations: 2.344 kB / 3.686 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001416/7.749, allocations: 0.7268 MB / 3.687 GB, free: 297.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/7.752, allocations: 0.4919 MB / 3.687 GB, free: 297.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007021/7.759, allocations: 3.596 MB / 3.691 GB, free: 296.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/7.76, allocations: 1.317 MB / 3.692 GB, free: 295.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002318/7.762, allocations: 432 kB / 3.692 GB, free: 295.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/7.763, allocations: 142.5 kB / 3.693 GB, free: 295.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.422e-06/7.763, allocations: 1.344 kB / 3.693 GB, free: 295.6 MB / 1.167 GB Notification: Performance of Templates: time 0.06601/7.829, allocations: 39.99 MB / 3.732 GB, free: 294.8 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches