Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Examples.FlowSystem.Simplified4,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified4,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4",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.175/2.175, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001261/0.001261, allocations: 184.8 kB / 487.4 MB, free: 5.047 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.566/1.566, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 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.00105/0.00105, allocations: 95.91 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.148e-05, allocations: 1.75 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2965, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.616, allocations: 462.3 MB / 1.658 GB, free: 8.398 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/1.617, allocations: 93.05 kB / 1.658 GB, free: 8.355 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 43.51/45.13, allocations: 10.5 GB / 12.16 GB, free: 97.91 MB / 1.432 GB Notification: Performance of FrontEnd: time 1.763e-06/45.13, allocations: 2.688 kB / 12.16 GB, free: 97.91 MB / 1.432 GB Notification: Performance of Transformations before backend: time 0.003133/45.13, allocations: 397.2 kB / 12.16 GB, free: 97.84 MB / 1.432 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.04721/45.18, allocations: 12.16 MB / 12.17 GB, free: 92.56 MB / 1.432 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/45.18, allocations: 8.094 kB / 12.17 GB, free: 92.56 MB / 1.432 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01697/45.2, allocations: 2.555 MB / 12.17 GB, free: 91.69 MB / 1.432 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06551/45.26, allocations: 20.4 MB / 12.19 GB, free: 89.41 MB / 1.432 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006017/45.26, allocations: 228.4 kB / 12.19 GB, free: 89.41 MB / 1.432 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004676/45.27, allocations: 488.6 kB / 12.19 GB, free: 89.41 MB / 1.432 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03211/45.3, allocations: 18.4 MB / 12.21 GB, free: 89.38 MB / 1.432 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03616/45.34, allocations: 13.01 MB / 12.22 GB, free: 88.62 MB / 1.432 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005237/45.34, allocations: 21.91 kB / 12.22 GB, free: 88.62 MB / 1.432 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004099/45.34, allocations: 6.688 kB / 12.22 GB, free: 88.62 MB / 1.432 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002437/45.34, allocations: 190.1 kB / 12.22 GB, free: 88.62 MB / 1.432 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.1482/45.49, allocations: 73.45 MB / 12.29 GB, free: 54.55 MB / 1.432 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01516/45.51, allocations: 10.33 MB / 12.3 GB, free: 54.39 MB / 1.432 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01216/45.52, allocations: 8.826 MB / 12.31 GB, free: 54.32 MB / 1.432 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 evalFunc (simulation): time 0.0696/45.59, allocations: 30.26 MB / 12.34 GB, free: 45.44 MB / 1.432 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01594/45.6, allocations: 8 MB / 12.35 GB, free: 42.55 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04507/45.65, allocations: 14.85 MB / 12.37 GB, free: 41.22 MB / 1.432 GB Notification: Performance of pre-optimization done (n=427): time 6.446e-05/45.65, allocations: 3 kB / 12.37 GB, free: 41.22 MB / 1.432 GB Notification: Performance of matching and sorting (n=429): time 0.1064/45.76, allocations: 37.09 MB / 12.4 GB, free: 25.95 MB / 1.432 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/45.76, allocations: 93.31 kB / 12.4 GB, free: 25.89 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0333/45.79, allocations: 12.03 MB / 12.41 GB, free: 20.61 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.003732/45.79, allocations: 37.7 kB / 12.41 GB, free: 20.56 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01072/45.8, allocations: 6.644 MB / 12.42 GB, free: 14.47 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.004256/45.81, allocations: 1.419 MB / 12.42 GB, free: 13.16 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002993/45.81, allocations: 0 / 12.42 GB, free: 13.16 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.0006594/45.81, allocations: 0.5647 MB / 12.42 GB, free: 12.67 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01093/45.82, allocations: 6.962 MB / 12.43 GB, free: 6.559 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/45.84, allocations: 9.564 MB / 12.44 GB, free: 12.8 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01807/45.85, allocations: 8.083 MB / 12.45 GB, free: 5.965 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/45.85, allocations: 16 kB / 12.45 GB, free: 5.949 MB / 1.448 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.06175/45.92, allocations: 23.04 MB / 12.47 GB, free: 3.395 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.225/47.14, allocations: 34.75 MB / 12.5 GB, free: 103.9 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002493/47.14, allocations: 51.69 kB / 12.5 GB, free: 103.9 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6837/47.83, allocations: 143.5 MB / 12.64 GB, free: 103.8 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009215/47.83, allocations: 1.529 MB / 12.64 GB, free: 103.8 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03571/47.87, allocations: 23.29 MB / 12.67 GB, free: 99.86 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01899/47.89, allocations: 0.9182 MB / 12.67 GB, free: 99.86 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0038/47.89, allocations: 0.7494 MB / 12.67 GB, free: 99.86 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/47.89, allocations: 7 kB / 12.67 GB, free: 99.86 MB / 1.464 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5572/48.45, allocations: 103 MB / 12.77 GB, free: 97.17 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002749/48.45, allocations: 49.34 kB / 12.77 GB, free: 97.17 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6337/49.08, allocations: 143.6 MB / 12.91 GB, free: 38.81 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007277/49.09, allocations: 1.512 MB / 12.91 GB, free: 37.42 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04186/49.13, allocations: 25.94 MB / 12.94 GB, free: 18.56 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02076/49.15, allocations: 0.896 MB / 12.94 GB, free: 17.73 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005228/49.16, allocations: 0.704 MB / 12.94 GB, free: 17.08 MB / 1.464 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.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: 237 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 649 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.004663/49.16, allocations: 302.2 kB / 12.94 GB, free: 16.92 MB / 1.464 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0325/49.2, allocations: 18.88 MB / 12.96 GB, free: 5.262 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005773/49.2, allocations: 1.234 MB / 12.96 GB, free: 4.695 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04385/49.25, allocations: 17.12 MB / 12.97 GB, free: 10.42 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.142e-05/49.25, allocations: 52 kB / 12.97 GB, free: 10.37 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/49.25, allocations: 0 / 12.97 GB, free: 10.37 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02612/49.27, allocations: 12.24 MB / 12.99 GB, free: 3.543 MB / 1.479 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 1.486/50.76, allocations: 33.65 MB / 13.02 GB, free: 160.3 MB / 1.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-05/50.76, allocations: 1.781 kB / 13.02 GB, free: 160.3 MB / 1.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005539/50.77, allocations: 0.8394 MB / 13.02 GB, free: 160.3 MB / 1.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1917/50.96, allocations: 40.72 MB / 13.06 GB, free: 160.3 MB / 1.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001806/50.96, allocations: 74.45 kB / 13.06 GB, free: 160.3 MB / 1.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01935/50.98, allocations: 11.92 MB / 13.07 GB, free: 156.3 MB / 1.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/50.98, allocations: 0 / 13.07 GB, free: 156.3 MB / 1.495 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08697/51.07, allocations: 28.62 MB / 13.1 GB, free: 155.3 MB / 1.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01282/51.08, allocations: 2.748 MB / 13.1 GB, free: 155.2 MB / 1.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007239/51.09, allocations: 7.109 kB / 13.1 GB, free: 155.2 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01673/51.1, allocations: 0.7043 MB / 13.1 GB, free: 155.2 MB / 1.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002422/51.1, allocations: 313.8 kB / 13.1 GB, free: 155.2 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002228/51.11, allocations: 222.4 kB / 13.1 GB, free: 155.2 MB / 1.495 GB Notification: Performance of sorting global known variables: time 0.03258/51.14, allocations: 9.002 MB / 13.11 GB, free: 154.9 MB / 1.495 GB Notification: Performance of sort global known variables: time 1.903e-06/51.14, allocations: 1.422 kB / 13.11 GB, free: 154.9 MB / 1.495 GB Notification: Performance of remove unused functions: time 0.05599/51.2, allocations: 6.336 MB / 13.12 GB, free: 154.9 MB / 1.495 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 353 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.09195/51.29, allocations: 33.69 MB / 13.15 GB, free: 151.1 MB / 1.495 GB Notification: Performance of simCode: created initialization part: time 0.06151/51.35, allocations: 28.17 MB / 13.18 GB, free: 150.5 MB / 1.495 GB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/51.35, allocations: 4.297 kB / 13.18 GB, free: 150.5 MB / 1.495 GB Notification: Performance of simCode: created simulation system equations: time 0.0146/51.36, allocations: 7 MB / 13.19 GB, free: 150.4 MB / 1.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03718/51.4, allocations: 6.566 MB / 13.19 GB, free: 150.3 MB / 1.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06112/51.46, allocations: 23.27 MB / 13.21 GB, free: 145.9 MB / 1.495 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0109/51.47, allocations: 7.341 MB / 13.22 GB, free: 144.9 MB / 1.495 GB Notification: Performance of simCode: alias equations: time 0.03216/51.51, allocations: 6.185 MB / 13.23 GB, free: 144.8 MB / 1.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01331/51.52, allocations: 6.111 MB / 13.23 GB, free: 144.8 MB / 1.495 GB Notification: Performance of SimCode: time 2.715e-06/51.52, allocations: 3.125 kB / 13.23 GB, free: 144.8 MB / 1.495 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.107/54.63, allocations: 495.6 MB / 13.72 GB, free: 173 MB / 1.511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/54.63, allocations: 167 kB / 13.72 GB, free: 172.8 MB / 1.511 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.58/83.21, allocations: 2.281 kB / 13.72 GB, free: 172.8 MB / 1.511 GB (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4.fmu > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat does not exist to compare? outputFormat=mat