Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8731/0.8731, allocations: 143.3 MB / 158.3 MB, free: 5.762 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 173.1 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 223.2 MB / 447.7 MB, free: 4.824 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 92.33 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 273.3 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004743, allocations: 11.38 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1969, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.421/1.618, allocations: 423.8 MB / 1.188 GB, free: 261 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/1.618, allocations: 102.7 kB / 1.188 GB, free: 261 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 50.1/51.72, allocations: 10.73 GB / 11.92 GB, free: 60.06 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.677e-06/51.72, allocations: 0 / 11.92 GB, free: 60.06 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003945/51.72, allocations: 352.6 kB / 11.92 GB, free: 60 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.08204/51.81, allocations: 17.51 MB / 11.94 GB, free: 53.61 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 8.739e-05/51.81, allocations: 9.938 kB / 11.94 GB, free: 53.61 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0071/51.81, allocations: 0.7866 MB / 11.94 GB, free: 53.54 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01686/51.83, allocations: 2.087 MB / 11.94 GB, free: 52.75 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08079/51.91, allocations: 18.51 MB / 11.96 GB, free: 50.64 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001461/51.91, allocations: 0.5316 MB / 11.96 GB, free: 50.62 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004865/51.92, allocations: 0.7202 MB / 11.96 GB, free: 50.62 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03396/51.95, allocations: 8.501 MB / 11.97 GB, free: 49.52 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006533/51.95, allocations: 12.53 kB / 11.97 GB, free: 49.52 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003762/51.96, allocations: 257.6 kB / 11.97 GB, free: 49.52 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004554/51.96, allocations: 158.4 kB / 11.97 GB, free: 49.51 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/51.98, allocations: 6.956 MB / 11.98 GB, free: 49.45 MB / 0.9636 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.1097/52.09, allocations: 49.91 MB / 12.02 GB, free: 22.48 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/52.1, allocations: 4.913 MB / 12.03 GB, free: 22.3 MB / 0.9636 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 evalFunc (simulation): time 0.04567/52.15, allocations: 13.51 MB / 12.04 GB, free: 19.25 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009352/52.16, allocations: 3.37 MB / 12.05 GB, free: 19.12 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01495/52.17, allocations: 2.449 MB / 12.05 GB, free: 18.8 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=327): time 3.43e-05/52.17, allocations: 0 / 12.05 GB, free: 18.8 MB / 0.9636 GB Notification: Performance of matching and sorting (n=516): time 0.169/52.34, allocations: 46.85 MB / 12.09 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.692e-05/52.34, allocations: 112.9 kB / 12.09 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0377/52.38, allocations: 12.31 MB / 12.11 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.002893/52.38, allocations: 175.8 kB / 12.11 GB, free: 8.914 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.01254/52.4, allocations: 6.212 MB / 12.11 GB, free: 7.469 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.003872/52.4, allocations: 1.735 MB / 12.11 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002386/52.4, allocations: 148.2 kB / 12.11 GB, free: 6.352 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0008682/52.4, allocations: 0.5957 MB / 12.12 GB, free: 6.031 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0123/52.42, allocations: 4.598 MB / 12.12 GB, free: 5.98 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01542/52.43, allocations: 7.526 MB / 12.13 GB, free: 2.477 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01379/52.45, allocations: 5.375 MB / 12.13 GB, free: 0.7305 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/52.45, allocations: 14.16 kB / 12.13 GB, free: 0.7305 MB / 0.9636 GB Notification: Performance of matching and sorting (n=959) (initialization): time 0.04859/52.49, allocations: 15.54 MB / 12.15 GB, free: 9.734 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.008/53.5, allocations: 38.5 MB / 12.18 GB, free: 77.89 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002652/53.5, allocations: 60.75 kB / 12.19 GB, free: 77.89 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009171/53.51, allocations: 3.512 MB / 12.19 GB, free: 77.82 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01278/53.53, allocations: 1.862 MB / 12.19 GB, free: 77.82 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01567/53.54, allocations: 12.37 MB / 12.2 GB, free: 71.18 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02064/53.56, allocations: 1.211 MB / 12.2 GB, free: 71.17 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003309/53.56, allocations: 493.5 kB / 12.2 GB, free: 71.17 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/53.56, allocations: 6.469 kB / 12.2 GB, free: 71.17 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03627/53.6, allocations: 14.28 MB / 12.22 GB, free: 70.81 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002917/53.6, allocations: 62.91 kB / 12.22 GB, free: 70.81 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00911/53.61, allocations: 3.792 MB / 12.22 GB, free: 70.73 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01031/53.62, allocations: 1.848 MB / 12.22 GB, free: 70.73 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02701/53.65, allocations: 17.35 MB / 12.24 GB, free: 65.2 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01881/53.67, allocations: 1.188 MB / 12.24 GB, free: 65.2 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003016/53.67, allocations: 450.6 kB / 12.24 GB, free: 65.2 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 269 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 721 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,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: 6 {1 2,1 4,1 2,1 2,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01223/53.68, allocations: 3.15 MB / 12.25 GB, free: 65 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004914/53.69, allocations: 1.204 MB / 12.25 GB, free: 65 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03881/53.73, allocations: 13.74 MB / 12.26 GB, free: 64.5 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001356/53.73, allocations: 62.28 kB / 12.26 GB, free: 64.5 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-05/53.73, allocations: 0 / 12.26 GB, free: 64.5 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03104/53.76, allocations: 11.1 MB / 12.27 GB, free: 63.92 MB / 0.9948 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.0844/53.84, allocations: 25.56 MB / 12.3 GB, free: 61.97 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.358e-05/53.84, allocations: 12.59 kB / 12.3 GB, free: 61.97 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007334/53.85, allocations: 1.158 MB / 12.3 GB, free: 61.97 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00626/53.86, allocations: 2.395 MB / 12.3 GB, free: 61.85 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001854/53.86, allocations: 167.5 kB / 12.3 GB, free: 61.85 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/53.87, allocations: 10.98 MB / 12.31 GB, free: 55.19 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.808e-05/53.87, allocations: 11.97 kB / 12.31 GB, free: 55.19 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04721/53.92, allocations: 20.58 MB / 12.33 GB, free: 51.73 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01264/53.93, allocations: 2.576 MB / 12.33 GB, free: 50.98 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006601/53.94, allocations: 109.5 kB / 12.33 GB, free: 50.98 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01539/53.95, allocations: 0.9833 MB / 12.33 GB, free: 50.96 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002012/53.95, allocations: 394.8 kB / 12.33 GB, free: 50.95 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001571/53.96, allocations: 251.9 kB / 12.33 GB, free: 50.95 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.02704/53.98, allocations: 9.39 MB / 12.34 GB, free: 50.59 MB / 0.9948 GB Notification: Performance of sort global known variables: time 8.31e-07/53.98, allocations: 0 / 12.34 GB, free: 50.59 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.05161/54.03, allocations: 6.043 MB / 12.35 GB, free: 50.59 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,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: 6 {5 77,1 2,1 4,1 2,1 2,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.05739/54.09, allocations: 25.83 MB / 12.37 GB, free: 44.26 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.05171/54.14, allocations: 18.33 MB / 12.39 GB, free: 43.14 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/54.14, allocations: 3.844 kB / 12.39 GB, free: 43.14 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.01325/54.16, allocations: 5.193 MB / 12.4 GB, free: 42.92 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0353/54.19, allocations: 5.879 MB / 12.4 GB, free: 42.57 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1148/54.31, allocations: 81.27 MB / 12.48 GB, free: 12.12 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0192/54.33, allocations: 7.105 MB / 12.49 GB, free: 11.01 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.02622/54.35, allocations: 3.884 MB / 12.49 GB, free: 10.36 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01589/54.37, allocations: 6.068 MB / 12.5 GB, free: 10.34 MB / 1.026 GB Notification: Performance of SimCode: time 2.174e-06/54.37, allocations: 0 / 12.5 GB, free: 10.34 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.549/56.92, allocations: 391.2 MB / 12.88 GB, free: 16.42 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/56.92, allocations: 268.2 kB / 12.88 GB, free: 16.05 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.22/83.14, allocations: 0 / 12.88 GB, free: 16.05 MB / 1.042 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified6_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified6.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1)