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.8155/0.8155, allocations: 141.8 MB / 149.3 MB, free: 9.23 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.001055/0.001055, allocations: 183.8 kB / 182.2 MB, free: 9.465 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.524/1.524, allocations: 221.5 MB / 436.4 MB, free: 13.3 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.0008971/0.0008968, allocations: 96.03 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001751/0.00175, allocations: 281 kB / 0.5889 GB, free: 54.69 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.423e-05, allocations: 4 kB / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.4485, allocations: 82.77 MB / 0.7575 GB, free: 31.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.289/1.737, allocations: 423.1 MB / 1.171 GB, free: 193.5 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/1.737, allocations: 91.89 kB / 1.171 GB, free: 193.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 45.74/47.48, allocations: 10.66 GB / 11.83 GB, free: 61.95 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.694e-06/47.48, allocations: 0 / 11.83 GB, free: 61.95 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.002762/47.48, allocations: 353.2 kB / 11.83 GB, free: 61.89 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.04361/47.52, allocations: 11.07 MB / 11.84 GB, free: 56.99 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/47.52, allocations: 10.47 kB / 11.84 GB, free: 56.99 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01363/47.54, allocations: 2.086 MB / 11.84 GB, free: 56.2 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06071/47.6, allocations: 18.32 MB / 11.86 GB, free: 54.09 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004551/47.6, allocations: 201.7 kB / 11.86 GB, free: 54.09 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002822/47.6, allocations: 441.4 kB / 11.86 GB, free: 54.08 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01491/47.62, allocations: 6.888 MB / 11.86 GB, free: 54.06 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/47.63, allocations: 7.448 MB / 11.87 GB, free: 53 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/47.63, allocations: 18.66 kB / 11.87 GB, free: 53 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006548/47.63, allocations: 17.47 kB / 11.87 GB, free: 53 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/47.63, allocations: 159.5 kB / 11.87 GB, free: 53 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.07816/47.71, allocations: 48.8 MB / 11.92 GB, free: 26.42 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008094/47.72, allocations: 5.44 MB / 11.93 GB, free: 26.28 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00576/47.72, allocations: 3.972 MB / 11.93 GB, free: 26.21 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 evalFunc (simulation): time 0.03751/47.76, allocations: 13.51 MB / 11.94 GB, free: 23.05 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005443/47.77, allocations: 3.15 MB / 11.95 GB, free: 22.94 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.013/47.78, allocations: 2.276 MB / 11.95 GB, free: 22.64 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=326): time 5.595e-05/47.78, allocations: 0 / 11.95 GB, free: 22.64 MB / 0.9636 GB Notification: Performance of matching and sorting (n=328): time 0.04922/47.83, allocations: 15.75 MB / 11.96 GB, free: 19.76 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/47.83, allocations: 86.27 kB / 11.96 GB, free: 19.69 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02734/47.86, allocations: 11.45 MB / 11.97 GB, free: 18.96 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.001774/47.86, allocations: 40.8 kB / 11.97 GB, free: 18.93 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.008037/47.87, allocations: 6.204 MB / 11.98 GB, free: 17.45 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.002045/47.87, allocations: 1.08 MB / 11.98 GB, free: 16.73 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/47.87, allocations: 0 / 11.98 GB, free: 16.73 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0005339/47.87, allocations: 0.5343 MB / 11.98 GB, free: 16.41 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0054/47.88, allocations: 3.032 MB / 11.98 GB, free: 16.4 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007111/47.88, allocations: 5.797 MB / 11.99 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008887/47.89, allocations: 3.98 MB / 11.99 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/47.89, allocations: 16.47 kB / 11.99 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02715/47.92, allocations: 10.76 MB / 12 GB, free: 11.91 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.01286/47.93, allocations: 38.34 MB / 12.04 GB, free: 3.867 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/47.93, allocations: 59.47 kB / 12.04 GB, free: 3.867 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003119/47.94, allocations: 1.352 MB / 12.04 GB, free: 3.781 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008323/47.94, allocations: 1.395 MB / 12.05 GB, free: 3.777 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/47.95, allocations: 9.711 MB / 12.05 GB, free: 14.17 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01562/47.97, allocations: 0.7467 MB / 12.06 GB, free: 14.07 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002593/47.97, allocations: 412.4 kB / 12.06 GB, free: 14.07 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/47.97, allocations: 11.48 kB / 12.06 GB, free: 14.06 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02466/48, allocations: 8.513 MB / 12.06 GB, free: 13.45 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003056/48, allocations: 60.12 kB / 12.06 GB, free: 13.45 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004458/48, allocations: 1.47 MB / 12.07 GB, free: 13.35 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007488/48.01, allocations: 1.387 MB / 12.07 GB, free: 13.26 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/48.03, allocations: 12.54 MB / 12.08 GB, free: 8.746 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/48.05, allocations: 0.7209 MB / 12.08 GB, free: 8.648 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00202/48.05, allocations: 373 kB / 12.08 GB, free: 8.648 MB / 1.01 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpCoo.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: 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 (640): * Single equations (assignments): 625 * 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: 5 * 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: 5 {1 4,1 2,1 2,1 2,4 81} Notification: Performance of prepare postOptimizeDAE: time 0.003523/48.05, allocations: 312.6 kB / 12.08 GB, free: 8.418 MB / 1.01 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01655/48.07, allocations: 6.624 MB / 12.09 GB, free: 7.465 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004426/48.07, allocations: 1.146 MB / 12.09 GB, free: 6.824 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02074/48.09, allocations: 7.669 MB / 12.1 GB, free: 6.145 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.355e-05/48.09, allocations: 40.03 kB / 12.1 GB, free: 6.141 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/48.09, allocations: 3.938 kB / 12.1 GB, free: 6.141 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01098/48.1, allocations: 5.761 MB / 12.1 GB, free: 3.957 MB / 1.01 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.03/49.13, allocations: 16.24 MB / 12.12 GB, free: 110.5 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/49.13, allocations: 2.75 kB / 12.12 GB, free: 110.5 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003377/49.14, allocations: 0.6066 MB / 12.12 GB, free: 110.5 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/49.14, allocations: 1.124 MB / 12.12 GB, free: 110.5 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004043/49.14, allocations: 60.52 kB / 12.12 GB, free: 110.5 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005763/49.15, allocations: 8.105 MB / 12.13 GB, free: 105 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/49.15, allocations: 5 kB / 12.13 GB, free: 105 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01942/49.17, allocations: 10.51 MB / 12.14 GB, free: 104.2 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009513/49.18, allocations: 2.18 MB / 12.14 GB, free: 104.1 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004838/49.18, allocations: 2.594 kB / 12.14 GB, free: 104.1 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01173/49.19, allocations: 0.626 MB / 12.14 GB, free: 104.1 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001067/49.19, allocations: 233.2 kB / 12.14 GB, free: 104.1 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000505/49.19, allocations: 169 kB / 12.14 GB, free: 104.1 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.02071/49.21, allocations: 8.545 MB / 12.15 GB, free: 103.7 MB / 1.01 GB Notification: Performance of sort global known variables: time 7.41e-07/49.21, allocations: 0.9062 kB / 12.15 GB, free: 103.7 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.04138/49.26, allocations: 5.197 MB / 12.15 GB, free: 103.7 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (274): * Single equations (assignments): 251 * 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: 5 * 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: 5 {1 2,1 4,1 2,1 2,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.02732/49.28, allocations: 15.1 MB / 12.17 GB, free: 100.6 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.02381/49.31, allocations: 11.94 MB / 12.18 GB, free: 100.1 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/49.31, allocations: 3.359 kB / 12.18 GB, free: 100.1 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.00549/49.31, allocations: 2.666 MB / 12.18 GB, free: 100.1 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03333/49.35, allocations: 5.752 MB / 12.19 GB, free: 100 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0534/49.4, allocations: 19.42 MB / 12.21 GB, free: 96.01 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009496/49.41, allocations: 6.734 MB / 12.21 GB, free: 95.05 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.02955/49.44, allocations: 5.895 MB / 12.22 GB, free: 94.89 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009217/49.45, allocations: 5.358 MB / 12.22 GB, free: 94.89 MB / 1.01 GB Notification: Performance of SimCode: time 1.252e-06/49.45, allocations: 2.156 kB / 12.22 GB, free: 94.89 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.362/51.81, allocations: 338.3 MB / 12.56 GB, free: 96.41 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/51.81, allocations: 183.5 kB / 12.56 GB, free: 96.21 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.94/72.75, allocations: 0 / 12.56 GB, free: 96.21 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)