Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.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.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.ports.1..m_flow|vol.heatPort.Q_flow|vol.heatPort.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate") translateModel(Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.ports.1..m_flow|vol.heatPort.Q_flow|vol.heatPort.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.359/2.359, allocations: 390.5 MB / 398 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.001281/0.001281, allocations: 178.9 kB / 491.2 MB, free: 1.617 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.699/1.699, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.0009338/0.0009338, allocations: 95.83 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.683e-05/1.673e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.312, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.182/6.494, allocations: 1.982 GB / 3.194 GB, free: 291 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/6.494, allocations: 83.98 kB / 3.194 GB, free: 290.9 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.67/8.164, allocations: 394.9 MB / 3.58 GB, free: 327.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.793e-06/8.164, allocations: 0 / 3.58 GB, free: 327.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.785e-05/8.164, allocations: 11.78 kB / 3.58 GB, free: 327.2 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001806/8.166, allocations: 0.8727 MB / 3.581 GB, free: 326.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/8.166, allocations: 11.03 kB / 3.581 GB, free: 326.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/8.167, allocations: 266.1 kB / 3.581 GB, free: 326.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008679/8.168, allocations: 480.8 kB / 3.581 GB, free: 326.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003033/8.169, allocations: 87.3 kB / 3.581 GB, free: 326.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/8.169, allocations: 22.31 kB / 3.581 GB, free: 326.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007114/8.169, allocations: 384.8 kB / 3.582 GB, free: 326.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000739/8.17, allocations: 0.4914 MB / 3.582 GB, free: 326 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/8.17, allocations: 7.578 kB / 3.582 GB, free: 326 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/8.17, allocations: 3.938 kB / 3.582 GB, free: 326 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/8.17, allocations: 19.12 kB / 3.582 GB, free: 326 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003124/8.173, allocations: 2.04 MB / 3.584 GB, free: 324.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/8.174, allocations: 140.9 kB / 3.584 GB, free: 324.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/8.174, allocations: 82.92 kB / 3.585 GB, free: 324.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/8.174, allocations: 7.344 kB / 3.585 GB, free: 324.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/8.174, allocations: 44.5 kB / 3.585 GB, free: 324.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=11): time 2.675e-06/8.174, allocations: 0 / 3.585 GB, free: 324.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.001684/8.176, allocations: 421.9 kB / 3.585 GB, free: 324.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/8.176, allocations: 81.11 kB / 3.585 GB, free: 324.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/8.176, allocations: 347.9 kB / 3.585 GB, free: 324.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/8.176, allocations: 25.7 kB / 3.585 GB, free: 324.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/8.176, allocations: 316.7 kB / 3.586 GB, free: 323.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/8.176, allocations: 37.89 kB / 3.586 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/8.176, allocations: 0 / 3.586 GB, free: 323.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.554e-05/8.176, allocations: 345.2 kB / 3.586 GB, free: 323.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/8.176, allocations: 110.2 kB / 3.586 GB, free: 323.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/8.177, allocations: 174.1 kB / 3.586 GB, free: 323.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/8.177, allocations: 126.6 kB / 3.586 GB, free: 323.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/8.177, allocations: 3.703 kB / 3.586 GB, free: 323.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00152/8.178, allocations: 0.5334 MB / 3.587 GB, free: 323.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/8.178, allocations: 3.969 kB / 3.587 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/8.178, allocations: 7.828 kB / 3.587 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003746/8.179, allocations: 129.3 kB / 3.587 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/8.179, allocations: 75.86 kB / 3.587 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/8.181, allocations: 1.754 MB / 3.589 GB, free: 321.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/8.182, allocations: 65.62 kB / 3.589 GB, free: 321.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/8.182, allocations: 11.31 kB / 3.589 GB, free: 321.7 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaFlo.Q_flow:VARIABLE(unit = "W" ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001848/8.182, allocations: 120.5 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.91e-05/8.182, allocations: 40.64 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/8.182, allocations: 40.48 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/8.182, allocations: 2.312 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/8.182, allocations: 3.891 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/8.182, allocations: 3.125 kB / 3.589 GB, free: 321.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/8.184, allocations: 0.8843 MB / 3.59 GB, free: 321.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/8.184, allocations: 3.781 kB / 3.59 GB, free: 321.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/8.185, allocations: 44.95 kB / 3.59 GB, free: 321.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000285/8.185, allocations: 131.3 kB / 3.59 GB, free: 321.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/8.185, allocations: 3.422 kB / 3.59 GB, free: 321.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/8.187, allocations: 1.745 MB / 3.592 GB, free: 319.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/8.187, allocations: 3.906 kB / 3.592 GB, free: 319.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/8.188, allocations: 0.5447 MB / 3.592 GB, free: 319.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/8.189, allocations: 153.4 kB / 3.593 GB, free: 319.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/8.189, allocations: 0 / 3.593 GB, free: 319.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005145/8.189, allocations: 58.11 kB / 3.593 GB, free: 319.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/8.189, allocations: 23.05 kB / 3.593 GB, free: 319.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/8.189, allocations: 14.66 kB / 3.593 GB, free: 319.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000284/8.19, allocations: 264.7 kB / 3.593 GB, free: 319.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/8.19, allocations: 0 / 3.593 GB, free: 319.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001042/8.191, allocations: 259.2 kB / 3.593 GB, free: 319.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001579/8.192, allocations: 1.15 MB / 3.594 GB, free: 318.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0006384/8.193, allocations: 341.5 kB / 3.595 GB, free: 318.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/8.193, allocations: 0 / 3.595 GB, free: 318.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002334/8.193, allocations: 211 kB / 3.595 GB, free: 318.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009224/8.194, allocations: 172.4 kB / 3.595 GB, free: 318.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/8.196, allocations: 0.6876 MB / 3.596 GB, free: 318.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/8.197, allocations: 0.8791 MB / 3.597 GB, free: 317.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0004254/8.197, allocations: 84.33 kB / 3.597 GB, free: 317.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/8.197, allocations: 27.12 kB / 3.597 GB, free: 317.4 MB / 1.151 GB Notification: Performance of SimCode: time 1.603e-06/8.197, allocations: 2.812 kB / 3.597 GB, free: 317.4 MB / 1.151 GB Notification: Performance of Templates: time 0.02285/8.22, allocations: 13.81 MB / 3.61 GB, free: 314.1 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.sim & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Examples_MixingVolumePrescribedHeatFlowRate.csv","../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Examples.MixingVolumePrescribedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches