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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 112.3 kB / 16.51 MB, free: 6.707 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.001468/0.001469, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.42/1.42, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2754/0.2754, allocations: 48.84 MB / 319.5 MB, free: 11.3 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.001587/0.001587, allocations: 68.69 kB / 389.4 MB, free: 49.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1198, allocations: 59.17 MB / 448.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.05015/0.17, allocations: 47.35 MB / 495.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01418/0.1842, allocations: 10.56 MB / 0.4946 GB, free: 124 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004926/0.1848, allocations: 15.94 kB / 0.4946 GB, free: 108 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009572/0.1857, allocations: 202.9 kB / 0.4948 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006711/0.1865, allocations: 282.3 kB / 0.4951 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01207/0.1986, allocations: 3.758 MB / 0.4987 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.2002, allocations: 1.071 MB / 0.4998 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004262/0.2006, allocations: 213.6 kB / 0.5 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003884/0.201, allocations: 251 kB / 0.5002 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000368/0.2014, allocations: 302.6 kB / 0.5005 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.2014, allocations: 20 kB / 0.5005 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.2126, allocations: 6.142 MB / 0.5065 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.2128, allocations: 75.69 kB / 0.5066 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.2132, allocations: 222.9 kB / 0.5068 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009695/0.2229, allocations: 3.735 MB / 0.5105 GB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.2229, allocations: 4 kB / 0.5105 GB, free: 15.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.223, allocations: 0 / 0.5105 GB, free: 15.82 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.223, allocations: 0 / 0.5105 GB, free: 15.82 MB / 414.1 MB 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.00321/0.2262, allocations: 1.138 MB / 0.5116 GB, free: 14.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2262, allocations: 12.03 kB / 0.5116 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004074/0.2267, allocations: 88.42 kB / 0.5117 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.2271, allocations: 331.2 kB / 0.512 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.2271, allocations: 25.03 kB / 0.512 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/0.2272, allocations: 32.38 kB / 0.512 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008917/0.2281, allocations: 433.9 kB / 0.5125 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2281, allocations: 0 / 0.5125 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.2282, allocations: 12 kB / 0.5125 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.2282, allocations: 8 kB / 0.5125 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.2289, allocations: 290.3 kB / 0.5127 GB, free: 13.36 MB / 414.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.002196/0.2311, allocations: 2.204 MB / 0.5149 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/0.2318, allocations: 262.7 kB / 0.5152 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.232, allocations: 96.83 kB / 0.5152 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2955/0.5275, allocations: 31.97 MB / 0.5465 GB, free: 70.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.5276, allocations: 39.72 kB / 0.5465 GB, free: 70.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.046e-06/0.5276, allocations: 0 / 0.5465 GB, free: 70.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005009/0.5326, allocations: 1.434 MB / 0.5479 GB, free: 70.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.5327, allocations: 55.47 kB / 0.548 GB, free: 70.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.5331, allocations: 323.8 kB / 0.5483 GB, free: 70.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.5331, allocations: 37.52 kB / 0.5483 GB, free: 70.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.5332, allocations: 202.4 kB / 0.5485 GB, free: 69.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.5333, allocations: 125 kB / 0.5486 GB, free: 69.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.5335, allocations: 64.27 kB / 0.5487 GB, free: 69.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.253e-05/0.5335, allocations: 348.4 kB / 0.549 GB, free: 69.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.5338, allocations: 125.7 kB / 0.5491 GB, free: 69.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.5341, allocations: 172.6 kB / 0.5493 GB, free: 69.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005196/0.5346, allocations: 295.6 kB / 0.5496 GB, free: 69.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5346, allocations: 3.656 kB / 0.5496 GB, free: 69.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001011/0.5356, allocations: 439.6 kB / 0.55 GB, free: 69.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.5357, allocations: 5 kB / 0.55 GB, free: 69.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.5357, allocations: 5.469 kB / 0.55 GB, free: 69.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005278/0.5362, allocations: 90 kB / 0.5501 GB, free: 69.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.5366, allocations: 81.45 kB / 0.5502 GB, free: 69.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006762/0.5373, allocations: 1.12 MB / 0.5513 GB, free: 68.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.5376, allocations: 41.5 kB / 0.5513 GB, free: 68.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.493e-05/0.5377, allocations: 10.62 kB / 0.5513 GB, free: 68.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002935/0.538, allocations: 218.6 kB / 0.5515 GB, free: 67.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002301/0.5382, allocations: 170.7 kB / 0.5517 GB, free: 67.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004537/0.5387, allocations: 287.7 kB / 0.552 GB, free: 67.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-06/0.5387, allocations: 0 / 0.552 GB, free: 67.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008888/0.5396, allocations: 425.9 kB / 0.5524 GB, free: 67.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.5396, allocations: 6.406 kB / 0.5524 GB, free: 67.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.5396, allocations: 2.031 kB / 0.5524 GB, free: 67.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004603/0.5401, allocations: 95.16 kB / 0.5525 GB, free: 67.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.5404, allocations: 76.91 kB / 0.5525 GB, free: 67.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006223/0.541, allocations: 1.112 MB / 0.5536 GB, free: 66.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.5414, allocations: 45.44 kB / 0.5537 GB, free: 66.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.5414, allocations: 15.12 kB / 0.5537 GB, free: 66.27 MB / 414.1 MB 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.5415, allocations: 195.2 kB / 0.5539 GB, free: 66.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.5416, allocations: 45.94 kB / 0.5539 GB, free: 66.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.5434, allocations: 1.173 MB / 0.5551 GB, free: 65.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.5435, allocations: 9.328 kB / 0.5551 GB, free: 65.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5435, allocations: 0 / 0.5551 GB, free: 65.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.5435, allocations: 7.766 kB / 0.5551 GB, free: 65.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000819/0.5443, allocations: 0.6776 MB / 0.5557 GB, free: 64.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.5443, allocations: 0 / 0.5557 GB, free: 64.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.5446, allocations: 68.38 kB / 0.5558 GB, free: 64.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006107/0.5453, allocations: 144.9 kB / 0.5559 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.5453, allocations: 7.984 kB / 0.5559 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006801/0.546, allocations: 1.195 MB / 0.5571 GB, free: 63.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.546, allocations: 0 / 0.5571 GB, free: 63.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.5475, allocations: 1.204 MB / 0.5583 GB, free: 62.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.5477, allocations: 154.8 kB / 0.5584 GB, free: 62.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.205e-05/0.5478, allocations: 12 kB / 0.5584 GB, free: 62.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.5481, allocations: 29.2 kB / 0.5585 GB, free: 62.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.34e-05/0.5482, allocations: 29.27 kB / 0.5585 GB, free: 62.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.5482, allocations: 10.88 kB / 0.5585 GB, free: 62.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.5484, allocations: 228.7 kB / 0.5587 GB, free: 62.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5484, allocations: 5.312 kB / 0.5587 GB, free: 62.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002847/0.5513, allocations: 0.9252 MB / 0.5596 GB, free: 62.46 MB / 414.1 MB 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004066/0.5554, allocations: 0.9793 MB / 0.5606 GB, free: 62.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.5569, allocations: 0.6841 MB / 0.5613 GB, free: 61.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5569, allocations: 4 kB / 0.5613 GB, free: 61.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005832/0.5575, allocations: 381.1 kB / 0.5616 GB, free: 61.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.5587, allocations: 204.1 kB / 0.5618 GB, free: 61.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.5605, allocations: 1.477 MB / 0.5633 GB, free: 60.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.5607, allocations: 0.8469 MB / 0.5641 GB, free: 59.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003751/0.5611, allocations: 196.1 kB / 0.5643 GB, free: 59.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-05/0.5612, allocations: 39.47 kB / 0.5643 GB, free: 59.75 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5612, allocations: 0 / 0.5643 GB, free: 59.75 MB / 414.1 MB Notification: Performance of Templates: time 0.03795/0.5992, allocations: 35.45 MB / 0.5989 GB, free: 24.43 MB / 414.1 MB 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)