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.6674/0.6674, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009506/0.0009506, allocations: 181.9 kB / 187.3 MB, free: 11.89 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.165/1.165, allocations: 221.3 MB / 441.4 MB, free: 4.664 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.0008741/0.000874, allocations: 97.84 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00166/0.001659, allocations: 283.1 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.456e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3229, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9013/1.224, allocations: 423.8 MB / 1.178 GB, free: 257.1 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.224, allocations: 94.11 kB / 1.178 GB, free: 257.1 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 39.84/41.06, allocations: 10.7 GB / 11.88 GB, free: 47.3 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.103e-06/41.06, allocations: 2.281 kB / 11.88 GB, free: 47.3 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003154/41.07, allocations: 352.7 kB / 11.88 GB, free: 47.23 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.04206/41.11, allocations: 11.08 MB / 11.89 GB, free: 42.37 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/41.11, allocations: 13.06 kB / 11.89 GB, free: 42.37 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00419/41.11, allocations: 0.7805 MB / 11.89 GB, free: 42.3 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01354/41.13, allocations: 2.086 MB / 11.9 GB, free: 41.5 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05732/41.18, allocations: 18.32 MB / 11.91 GB, free: 39.39 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001007/41.19, allocations: 0.5276 MB / 11.91 GB, free: 39.38 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003629/41.19, allocations: 0.7179 MB / 11.91 GB, free: 39.38 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02707/41.22, allocations: 8.282 MB / 11.92 GB, free: 38.31 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005307/41.22, allocations: 21.77 kB / 11.92 GB, free: 38.31 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002659/41.22, allocations: 252.9 kB / 11.92 GB, free: 38.31 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/41.22, allocations: 152.4 kB / 11.92 GB, free: 38.31 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/41.24, allocations: 6.626 MB / 11.93 GB, free: 38.26 MB / 0.9636 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.08132/41.32, allocations: 49.9 MB / 11.98 GB, free: 27.55 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00787/41.32, allocations: 4.657 MB / 11.98 GB, free: 27.39 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005469/41.33, allocations: 3.617 MB / 11.99 GB, free: 27.33 MB / 0.9792 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.03667/41.37, allocations: 13.72 MB / 12 GB, free: 24.26 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006676/41.37, allocations: 3.242 MB / 12 GB, free: 24.14 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0131/41.39, allocations: 2.394 MB / 12 GB, free: 23.87 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=326): time 2.736e-05/41.39, allocations: 0 / 12 GB, free: 23.87 MB / 0.9792 GB Notification: Performance of matching and sorting (n=514): time 0.1217/41.51, allocations: 36.99 MB / 12.04 GB, free: 16.12 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/41.51, allocations: 105.7 kB / 12.04 GB, free: 16.05 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02996/41.54, allocations: 12.18 MB / 12.05 GB, free: 15.26 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.002158/41.54, allocations: 172.4 kB / 12.05 GB, free: 15.23 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.008839/41.55, allocations: 6.213 MB / 12.06 GB, free: 13.78 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.002871/41.55, allocations: 1.741 MB / 12.06 GB, free: 12.66 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/41.55, allocations: 143.3 kB / 12.06 GB, free: 12.66 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0006065/41.56, allocations: 0.5919 MB / 12.06 GB, free: 12.34 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006612/41.56, allocations: 3.92 MB / 12.07 GB, free: 12.33 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008767/41.57, allocations: 6.841 MB / 12.07 GB, free: 8.898 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008017/41.58, allocations: 4.724 MB / 12.08 GB, free: 8.625 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-05/41.58, allocations: 16.53 kB / 12.08 GB, free: 8.625 MB / 0.9792 GB Notification: Performance of matching and sorting (n=957) (initialization): time 0.02789/41.61, allocations: 13.94 MB / 12.09 GB, free: 7.434 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.01235/41.62, allocations: 38.52 MB / 12.13 GB, free: 15.35 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000229/41.62, allocations: 60.94 kB / 12.13 GB, free: 15.35 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007253/41.63, allocations: 3.393 MB / 12.13 GB, free: 15.18 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01051/41.64, allocations: 1.868 MB / 12.13 GB, free: 15.07 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/41.65, allocations: 12.32 MB / 12.15 GB, free: 8.27 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0164/41.67, allocations: 1.211 MB / 12.15 GB, free: 8.152 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002453/41.67, allocations: 486.1 kB / 12.15 GB, free: 8.152 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/41.67, allocations: 7.5 kB / 12.15 GB, free: 8.148 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02609/41.7, allocations: 12.91 MB / 12.16 GB, free: 7.195 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000182/41.7, allocations: 57.72 kB / 12.16 GB, free: 7.195 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007722/41.7, allocations: 3.648 MB / 12.16 GB, free: 7.039 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009177/41.71, allocations: 1.858 MB / 12.16 GB, free: 6.93 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02224/41.73, allocations: 16.62 MB / 12.18 GB, free: 0.8477 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01585/41.75, allocations: 1.188 MB / 12.18 GB, free: 0.6094 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002141/41.75, allocations: 449.6 kB / 12.18 GB, free: 0.5508 MB / 1.026 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 725 * 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 4,1 2,1 2,1 2,6 79,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.002534/41.76, allocations: 0.5373 MB / 12.18 GB, free: 112 kB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.8592/42.61, allocations: 1.211 MB / 12.18 GB, free: 111.4 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02663/42.64, allocations: 12.37 MB / 12.2 GB, free: 110.9 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-05/42.64, allocations: 58.56 kB / 12.2 GB, free: 110.9 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/42.64, allocations: 3.422 kB / 12.2 GB, free: 110.9 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0164/42.66, allocations: 9.76 MB / 12.21 GB, free: 110.3 MB / 1.026 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.05334/42.71, allocations: 24.43 MB / 12.23 GB, free: 108.5 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.837e-05/42.71, allocations: 6.188 kB / 12.23 GB, free: 108.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006335/42.72, allocations: 1.164 MB / 12.23 GB, free: 108.5 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005582/42.72, allocations: 2.408 MB / 12.23 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00119/42.72, allocations: 167.6 kB / 12.23 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008769/42.73, allocations: 10.99 MB / 12.24 GB, free: 101.8 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/42.73, allocations: 12.91 kB / 12.24 GB, free: 101.8 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02908/42.76, allocations: 19.03 MB / 12.26 GB, free: 98.17 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009625/42.77, allocations: 2.574 MB / 12.27 GB, free: 97.62 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004743/42.78, allocations: 107.7 kB / 12.27 GB, free: 97.62 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.013/42.79, allocations: 0.9904 MB / 12.27 GB, free: 97.6 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001506/42.79, allocations: 395.3 kB / 12.27 GB, free: 97.59 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001275/42.79, allocations: 251.4 kB / 12.27 GB, free: 97.59 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.02135/42.81, allocations: 9.253 MB / 12.28 GB, free: 97.17 MB / 1.026 GB Notification: Performance of sort global known variables: time 4.51e-07/42.81, allocations: 0 / 12.28 GB, free: 97.17 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.03818/42.85, allocations: 6.034 MB / 12.28 GB, free: 97.17 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (441): * Single equations (assignments): 416 * 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 {8 73,1 4,1 2,1 2,1 2,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.04082/42.89, allocations: 24.15 MB / 12.31 GB, free: 90.65 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.03714/42.93, allocations: 16.8 MB / 12.32 GB, free: 90.02 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.715e-05/42.93, allocations: 0 / 12.32 GB, free: 90.02 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.009516/42.94, allocations: 4.648 MB / 12.33 GB, free: 89.95 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03217/42.97, allocations: 5.906 MB / 12.33 GB, free: 89.84 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0618/43.03, allocations: 22.7 MB / 12.35 GB, free: 85.36 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/43.04, allocations: 7.128 MB / 12.36 GB, free: 84.37 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.03118/43.08, allocations: 6.537 MB / 12.37 GB, free: 84.04 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01024/43.09, allocations: 5.779 MB / 12.37 GB, free: 84.04 MB / 1.026 GB Notification: Performance of SimCode: time 1.313e-06/43.09, allocations: 0 / 12.37 GB, free: 84.04 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.086/45.17, allocations: 418.9 MB / 12.78 GB, free: 66.81 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/45.17, allocations: 240.3 kB / 12.78 GB, free: 66.5 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/64.72, allocations: 4.562 kB / 12.78 GB, free: 66.49 MB / 1.026 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)