Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Movers.Validation.FlowControlled_m_flow,fileNamePrefix="Buildings_9_Buildings_Fluid_Movers_Validation_FlowControlled_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Movers.Validation.FlowControlled_m_flow,fileNamePrefix="Buildings_9_Buildings_Fluid_Movers_Validation_FlowControlled_m_flow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.324/2.324, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001246/0.001246, allocations: 188.4 kB / 487.4 MB, free: 5.016 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.529/1.529, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000936/0.000936, allocations: 94.2 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.941e-05/1.952e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.241, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.93/5.171, allocations: 1.945 GB / 3.151 GB, free: 342.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/5.171, allocations: 98.39 kB / 3.151 GB, free: 342.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 4.986/10.16, allocations: 1.655 GB / 4.806 GB, free: 5.062 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.743e-06/10.16, allocations: 0 / 4.806 GB, free: 5.062 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0003125/10.16, allocations: 59.98 kB / 4.807 GB, free: 5.004 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 0.008194/10.17, allocations: 2.521 MB / 4.809 GB, free: 2.434 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/10.17, allocations: 15.97 kB / 4.809 GB, free: 2.418 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00774/10.17, allocations: 0.9843 MB / 4.81 GB, free: 1.43 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008708/10.18, allocations: 2.736 MB / 4.813 GB, free: 14.61 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/10.18, allocations: 51.94 kB / 4.813 GB, free: 14.56 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005956/10.18, allocations: 88 kB / 4.813 GB, free: 14.48 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002686/10.19, allocations: 1.138 MB / 4.814 GB, free: 13.34 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/10.19, allocations: 1.344 MB / 4.815 GB, free: 11.93 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/10.19, allocations: 7.984 kB / 4.815 GB, free: 11.92 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/10.19, allocations: 4 kB / 4.815 GB, free: 11.92 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.986e-05/10.19, allocations: 54.55 kB / 4.815 GB, free: 11.86 MB / 1.198 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.01202/10.2, allocations: 7.243 MB / 4.822 GB, free: 4.07 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/10.2, allocations: 0.9891 MB / 4.823 GB, free: 3.031 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006954/10.2, allocations: 447 kB / 4.824 GB, free: 2.594 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/10.2, allocations: 105.9 kB / 4.824 GB, free: 2.473 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/10.2, allocations: 43.34 kB / 4.824 GB, free: 2.418 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001312/10.2, allocations: 191.2 kB / 4.824 GB, free: 2.23 MB / 1.198 GB Notification: Performance of pre-optimization done (n=78): time 4.849e-06/10.2, allocations: 4 kB / 4.824 GB, free: 2.227 MB / 1.198 GB Notification: Performance of matching and sorting (n=78): time 0.003053/10.21, allocations: 1.049 MB / 4.825 GB, free: 1.168 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/10.21, allocations: 60.19 kB / 4.825 GB, free: 1.098 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.8486/11.06, allocations: 1.285 MB / 4.826 GB, free: 179.3 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.000296/11.06, allocations: 27.92 kB / 4.826 GB, free: 179.2 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001056/11.06, allocations: 0.9775 MB / 4.827 GB, free: 179.1 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003698/11.06, allocations: 268.5 kB / 4.828 GB, free: 179 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/11.06, allocations: 0 / 4.828 GB, free: 179 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001062/11.06, allocations: 346.4 kB / 4.828 GB, free: 178.7 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007495/11.06, allocations: 347.4 kB / 4.828 GB, free: 178.7 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/11.06, allocations: 0.7529 MB / 4.829 GB, free: 178.2 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/11.06, allocations: 0.4949 MB / 4.83 GB, free: 178.2 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.986e-06/11.06, allocations: 3.375 kB / 4.83 GB, free: 178.2 MB / 1.198 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003415/11.06, allocations: 1.311 MB / 4.831 GB, free: 178.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008682/11.06, allocations: 3.943 MB / 4.835 GB, free: 174 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/11.06, allocations: 9.594 kB / 4.835 GB, free: 174 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/11.07, allocations: 105.2 kB / 4.835 GB, free: 174 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/11.07, allocations: 282.5 kB / 4.835 GB, free: 174 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/11.07, allocations: 2.239 MB / 4.837 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/11.07, allocations: 143.8 kB / 4.837 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/11.07, allocations: 59.95 kB / 4.837 GB, free: 172.2 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/11.07, allocations: 3.156 kB / 4.837 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002753/11.07, allocations: 1.01 MB / 4.838 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/11.07, allocations: 14.12 kB / 4.838 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/11.07, allocations: 102.9 kB / 4.839 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/11.08, allocations: 256.7 kB / 4.839 GB, free: 172.2 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/11.08, allocations: 1.662 MB / 4.84 GB, free: 171 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/11.08, allocations: 133.5 kB / 4.84 GB, free: 171 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/11.08, allocations: 55.83 kB / 4.841 GB, free: 171 MB / 1.198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: floMacSta.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "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: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0003923/11.08, allocations: 143.6 kB / 4.841 GB, free: 170.9 MB / 1.198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002448/11.08, allocations: 0.9633 MB / 4.842 GB, free: 170.7 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/11.08, allocations: 183.6 kB / 4.842 GB, free: 170.6 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/11.09, allocations: 1.044 MB / 4.843 GB, free: 170.5 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/11.09, allocations: 13.98 kB / 4.843 GB, free: 170.5 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/11.09, allocations: 1.766 kB / 4.843 GB, free: 170.5 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001945/11.09, allocations: 0.8889 MB / 4.844 GB, free: 170.4 MB / 1.198 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 postOpt removeSimpleEquations (simulation): time 0.006484/11.09, allocations: 2.791 MB / 4.846 GB, free: 169.8 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/11.09, allocations: 2.125 kB / 4.846 GB, free: 169.8 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/11.1, allocations: 210.4 kB / 4.847 GB, free: 169.8 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/11.1, allocations: 86.34 kB / 4.847 GB, free: 169.7 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.394e-05/11.1, allocations: 12.39 kB / 4.847 GB, free: 169.7 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/11.1, allocations: 2.198 MB / 4.849 GB, free: 168 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/11.1, allocations: 2.438 kB / 4.849 GB, free: 168 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/11.1, allocations: 1.634 MB / 4.85 GB, free: 167.5 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/11.1, allocations: 338.5 kB / 4.851 GB, free: 167.3 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/11.1, allocations: 8.828 kB / 4.851 GB, free: 167.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/11.1, allocations: 122.4 kB / 4.851 GB, free: 167.3 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/11.1, allocations: 57.33 kB / 4.851 GB, free: 167.3 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.172e-05/11.1, allocations: 36.77 kB / 4.851 GB, free: 167.3 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.00223/11.11, allocations: 0.9754 MB / 4.852 GB, free: 167.1 MB / 1.198 GB Notification: Performance of sort global known variables: time 5.91e-07/11.11, allocations: 0 / 4.852 GB, free: 167.1 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.006371/11.11, allocations: 1.3 MB / 4.853 GB, free: 167.1 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (floMacDyn.vol.dynBal.medium.Xi[1],floMacDyn.vol.dynBal.U,floMacDyn.vol.dynBal.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.01077/11.12, allocations: 6.837 MB / 4.86 GB, free: 164.2 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.003854/11.13, allocations: 1.66 MB / 4.862 GB, free: 163.9 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/11.13, allocations: 0 / 4.862 GB, free: 163.9 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.0008085/11.13, allocations: 0.5065 MB / 4.862 GB, free: 163.8 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004554/11.13, allocations: 0.8731 MB / 4.863 GB, free: 163.8 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00774/11.14, allocations: 3.144 MB / 4.866 GB, free: 163 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/11.14, allocations: 1.621 MB / 4.868 GB, free: 162.3 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.003143/11.15, allocations: 0.6823 MB / 4.868 GB, free: 162.2 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009617/11.15, allocations: 0.8164 MB / 4.869 GB, free: 162.2 MB / 1.198 GB Notification: Performance of SimCode: time 9.82e-07/11.15, allocations: 0 / 4.869 GB, free: 162.2 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1477/11.29, allocations: 78.47 MB / 4.946 GB, free: 160.4 MB / 1.198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/11.29, allocations: 178.5 kB / 4.946 GB, free: 160.2 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.087/16.38, allocations: 0 / 4.946 GB, free: 160.2 MB / 1.198 GB (rm -f Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Movers_Validation_FlowControlled_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Movers_Validation_FlowControlled_m_flow.fmu > Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Movers.Validation.FlowControlled_m_flow_res.mat does not exist to compare? outputFormat=mat