Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 112.3 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 187 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2983/0.2983, allocations: 48.84 MB / 320.7 MB, free: 11.01 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 63.91 kB / 451.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1136, allocations: 59.17 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow): time 0.2893/0.403, allocations: 41.97 MB / 0.5394 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.4148, allocations: 9.879 MB / 0.549 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006289/0.4154, allocations: 19.06 kB / 0.549 GB, free: 4.332 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007961/0.4163, allocations: 230.4 kB / 0.5493 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000838/0.4172, allocations: 291.7 kB / 0.5495 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0169/0.4341, allocations: 4.726 MB / 0.5542 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.4355, allocations: 0.7501 MB / 0.5549 GB, free: 2.582 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005214/0.436, allocations: 255.4 kB / 0.5551 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004946/0.4365, allocations: 278.3 kB / 0.5554 GB, free: 2.477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003759/0.4369, allocations: 288.6 kB / 0.5557 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.437, allocations: 28.16 kB / 0.5557 GB, free: 2.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01466/0.4517, allocations: 6.236 MB / 0.5618 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.4518, allocations: 80.78 kB / 0.5619 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.4522, allocations: 235.8 kB / 0.5621 GB, free: 440 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.4635, allocations: 3.757 MB / 0.5658 GB, free: 14.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.4635, allocations: 4 kB / 0.5658 GB, free: 14.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4635, allocations: 0 / 0.5658 GB, free: 14.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.4635, allocations: 1.25 kB / 0.5658 GB, free: 14.04 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.004407/0.4679, allocations: 1.182 MB / 0.5669 GB, free: 13.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.468, allocations: 12.89 kB / 0.5669 GB, free: 13.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003082/0.4683, allocations: 71.36 kB / 0.567 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000686/0.469, allocations: 390.3 kB / 0.5674 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.469, allocations: 21.28 kB / 0.5674 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.4691, allocations: 30.97 kB / 0.5674 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.4699, allocations: 387.3 kB / 0.5678 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.47, allocations: 6.266 kB / 0.5678 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.47, allocations: 10.16 kB / 0.5678 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.47, allocations: 7.719 kB / 0.5678 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006782/0.4707, allocations: 254.8 kB / 0.5681 GB, free: 12.35 MB / 430.1 MB 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.002354/0.4731, allocations: 2.028 MB / 0.57 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004857/0.4736, allocations: 150.5 kB / 0.5702 GB, free: 10.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.4737, allocations: 80.55 kB / 0.5703 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06748/0.5412, allocations: 32.1 MB / 0.6016 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.5413, allocations: 34.56 kB / 0.6016 GB, free: 12.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=15): time 4.498e-06/0.5413, allocations: 0 / 0.6016 GB, free: 12.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=15): time 0.002572/0.5439, allocations: 0.577 MB / 0.6022 GB, free: 11.69 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.544, allocations: 59.39 kB / 0.6023 GB, free: 11.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.5445, allocations: 401.9 kB / 0.6026 GB, free: 11.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.5445, allocations: 29.64 kB / 0.6027 GB, free: 11.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.5447, allocations: 220.1 kB / 0.6029 GB, free: 10.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.577e-05/0.5447, allocations: 55.28 kB / 0.6029 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.681e-05/0.5448, allocations: 49.59 kB / 0.603 GB, free: 10.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.545, allocations: 350.7 kB / 0.6033 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.5452, allocations: 76.81 kB / 0.6034 GB, free: 10.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.5454, allocations: 108.2 kB / 0.6035 GB, free: 10.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.5458, allocations: 188.1 kB / 0.6037 GB, free: 10.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5458, allocations: 0 / 0.6037 GB, free: 10.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006358/0.5464, allocations: 297.8 kB / 0.604 GB, free: 9.801 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.5464, allocations: 4 kB / 0.604 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.5464, allocations: 4 kB / 0.604 GB, free: 9.793 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002339/0.5488, allocations: 334.2 kB / 0.6043 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.5491, allocations: 51.89 kB / 0.6043 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000857/0.5499, allocations: 0.646 MB / 0.605 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.5503, allocations: 31.8 kB / 0.605 GB, free: 8.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.5504, allocations: 12 kB / 0.605 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002624/0.5506, allocations: 164.1 kB / 0.6052 GB, free: 8.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001799/0.5508, allocations: 119.6 kB / 0.6053 GB, free: 8.391 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003206/0.5512, allocations: 191.6 kB / 0.6055 GB, free: 8.176 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.5512, allocations: 0 / 0.6055 GB, free: 8.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization_lambda0): time 0.000744/0.5519, allocations: 302 kB / 0.6058 GB, free: 7.871 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5519, allocations: 7.938 kB / 0.6058 GB, free: 7.863 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.552, allocations: 4 kB / 0.6058 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003324/0.5523, allocations: 80.33 kB / 0.6058 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.5525, allocations: 55.95 kB / 0.6059 GB, free: 7.727 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.5542, allocations: 1.568 MB / 0.6074 GB, free: 6.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003427/0.5546, allocations: 11.91 kB / 0.6074 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.5546, allocations: 15.98 kB / 0.6075 GB, free: 5.992 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.5547, allocations: 197.4 kB / 0.6076 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.381e-05/0.5548, allocations: 39.53 kB / 0.6077 GB, free: 5.754 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.556, allocations: 0.9022 MB / 0.6086 GB, free: 4.848 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.5561, allocations: 14.17 kB / 0.6086 GB, free: 4.836 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.5561, allocations: 4 kB / 0.6086 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5561, allocations: 0 / 0.6086 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/0.5567, allocations: 0.5489 MB / 0.6091 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5567, allocations: 3.938 kB / 0.6091 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.737e-05/0.5568, allocations: 19.98 kB / 0.6091 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.5582, allocations: 0.4954 MB / 0.6096 GB, free: 3.711 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.5582, allocations: 7.938 kB / 0.6096 GB, free: 3.703 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009831/0.5592, allocations: 1.073 MB / 0.6107 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5592, allocations: 0 / 0.6107 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.5603, allocations: 0.8029 MB / 0.6115 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.5604, allocations: 129.1 kB / 0.6116 GB, free: 1.637 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.045e-05/0.5605, allocations: 11.91 kB / 0.6116 GB, free: 1.625 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.5607, allocations: 7.984 kB / 0.6116 GB, free: 1.617 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.5608, allocations: 15.98 kB / 0.6116 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.5608, allocations: 15.92 kB / 0.6116 GB, free: 1.586 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003604/0.5612, allocations: 338.8 kB / 0.612 GB, free: 1.254 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5612, allocations: 0 / 0.612 GB, free: 1.254 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003464/0.5647, allocations: 0.9446 MB / 0.6129 GB, free: 316 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003912/0.5686, allocations: 0.9608 MB / 0.6138 GB, free: 15.35 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.5701, allocations: 489.7 kB / 0.6143 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5701, allocations: 0 / 0.6143 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003903/0.5705, allocations: 196 kB / 0.6145 GB, free: 14.67 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.5718, allocations: 225.5 kB / 0.6147 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.5731, allocations: 0.8924 MB / 0.6156 GB, free: 13.53 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.5735, allocations: 0.8475 MB / 0.6164 GB, free: 12.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.5736, allocations: 31.44 kB / 0.6164 GB, free: 12.63 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5736, allocations: 0 / 0.6164 GB, free: 12.63 MB / 478.1 MB Notification: Performance of Templates: time 0.03238/0.606, allocations: 22.1 MB / 0.638 GB, free: 6.496 MB / 494.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe 2>&1)