Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 171.3 kB / 17.39 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.4 MB / 223.6 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008492/0.0008495, allocations: 89.34 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5435/0.5435, allocations: 48.77 MB / 368.9 MB, free: 47.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006924/0.0006931, allocations: 12 kB / 439.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1884, allocations: 60.26 MB / 0.4884 GB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.628/7.816, allocations: 2.907 GB / 3.395 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/7.817, allocations: 86.88 kB / 3.395 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.88/8.697, allocations: 298.3 MB / 3.686 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.675e-06/8.697, allocations: 4 kB / 3.686 GB, free: 21.92 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.385e-05/8.697, allocations: 15.94 kB / 3.686 GB, free: 21.91 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.005069/8.702, allocations: 1.117 MB / 3.687 GB, free: 20.74 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/8.702, allocations: 8.031 kB / 3.687 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004758/8.702, allocations: 88.33 kB / 3.688 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00072/8.703, allocations: 365.7 kB / 3.688 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/8.703, allocations: 25.03 kB / 3.688 GB, free: 20.23 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.317e-05/8.703, allocations: 44.38 kB / 3.688 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008579/8.704, allocations: 459.8 kB / 3.688 GB, free: 19.69 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/8.704, allocations: 4.125 kB / 3.688 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/8.704, allocations: 15.94 kB / 3.688 GB, free: 19.67 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/8.704, allocations: 8 kB / 3.688 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006324/8.705, allocations: 290.4 kB / 3.689 GB, free: 19.38 MB / 0.5105 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.001879/8.707, allocations: 2.164 MB / 3.691 GB, free: 17 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005974/8.707, allocations: 254.7 kB / 3.691 GB, free: 16.74 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/8.708, allocations: 104.8 kB / 3.691 GB, free: 16.63 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3459/9.053, allocations: 31.86 MB / 3.722 GB, free: 56.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/9.054, allocations: 37.03 kB / 3.722 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.765e-06/9.054, allocations: 3.609 kB / 3.722 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.00481/9.058, allocations: 1.478 MB / 3.724 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/9.058, allocations: 58.66 kB / 3.724 GB, free: 56.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/9.059, allocations: 316 kB / 3.724 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/9.059, allocations: 36.05 kB / 3.724 GB, free: 56.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/9.059, allocations: 208 kB / 3.724 GB, free: 56.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.466e-05/9.059, allocations: 116.9 kB / 3.724 GB, free: 55.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/9.059, allocations: 9.781 kB / 3.724 GB, free: 55.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.762e-05/9.059, allocations: 344.9 kB / 3.725 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/9.059, allocations: 115.7 kB / 3.725 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/9.06, allocations: 170.1 kB / 3.725 GB, free: 55.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/9.06, allocations: 304.7 kB / 3.725 GB, free: 55.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/9.06, allocations: 0 / 3.725 GB, free: 55.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007709/9.061, allocations: 440.3 kB / 3.726 GB, free: 55.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.29e-05/9.061, allocations: 124.7 kB / 3.726 GB, free: 55.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/9.061, allocations: 3.875 kB / 3.726 GB, free: 55.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/9.061, allocations: 92.84 kB / 3.726 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/9.062, allocations: 81.39 kB / 3.726 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00069/9.062, allocations: 1.116 MB / 3.727 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/9.063, allocations: 49.98 kB / 3.727 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/9.063, allocations: 13.38 kB / 3.727 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/9.063, allocations: 5.281 kB / 3.727 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006759/9.064, allocations: 364.9 kB / 3.728 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/9.064, allocations: 7.031 kB / 3.728 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003756/9.064, allocations: 89.36 kB / 3.728 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/9.064, allocations: 80.02 kB / 3.728 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005763/9.065, allocations: 1.113 MB / 3.729 GB, free: 53.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/9.065, allocations: 40.88 kB / 3.729 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/9.065, allocations: 11.45 kB / 3.729 GB, free: 53.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002355/9.065, allocations: 231.2 kB / 3.729 GB, free: 53.05 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.028e-05/9.065, allocations: 38.94 kB / 3.729 GB, free: 53.03 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/9.067, allocations: 1.177 MB / 3.73 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/9.067, allocations: 16.77 kB / 3.73 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/9.067, allocations: 0.625 kB / 3.73 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/9.067, allocations: 3 kB / 3.73 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/9.068, allocations: 0.6669 MB / 3.731 GB, free: 52.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/9.068, allocations: 0 / 3.731 GB, free: 52.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/9.068, allocations: 73.25 kB / 3.731 GB, free: 52.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005603/9.069, allocations: 146.6 kB / 3.731 GB, free: 52.69 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/9.069, allocations: 9.984 kB / 3.731 GB, free: 52.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007176/9.069, allocations: 1.19 MB / 3.732 GB, free: 51.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/9.069, allocations: 0 / 3.732 GB, free: 51.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/9.071, allocations: 1.217 MB / 3.733 GB, free: 51.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/9.071, allocations: 161.4 kB / 3.734 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.278e-05/9.071, allocations: 14.5 kB / 3.734 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/9.071, allocations: 25.31 kB / 3.734 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/9.071, allocations: 26.25 kB / 3.734 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/9.072, allocations: 12.98 kB / 3.734 GB, free: 51.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002099/9.072, allocations: 227.5 kB / 3.734 GB, free: 51.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.01e-07/9.072, allocations: 0 / 3.734 GB, free: 51.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004965/9.077, allocations: 0.9641 MB / 3.735 GB, free: 51.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006988/9.084, allocations: 1.314 MB / 3.736 GB, free: 51.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001676/9.085, allocations: 0.6801 MB / 3.737 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/9.085, allocations: 0 / 3.737 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005931/9.086, allocations: 381.9 kB / 3.737 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/9.087, allocations: 203.9 kB / 3.737 GB, free: 51.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/9.089, allocations: 1.536 MB / 3.739 GB, free: 50.51 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/9.09, allocations: 0.8504 MB / 3.74 GB, free: 49.82 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004531/9.09, allocations: 199.8 kB / 3.74 GB, free: 49.81 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.46e-05/9.09, allocations: 44.8 kB / 3.74 GB, free: 49.8 MB / 0.5105 GB Notification: Performance of SimCode: time 8.21e-07/9.09, allocations: 3.094 kB / 3.74 GB, free: 49.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.05269/9.143, allocations: 32.8 MB / 3.772 GB, free: 48.52 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)