Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSources.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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSources,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001414/0.001413, allocations: 195 kB / 18 MB, free: 5.105 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.308/1.308, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2707/0.2707, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.001358/0.001358, allocations: 67.91 kB / 450 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 59.15 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:297:5-297:61:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:297:5-297:61:writable] Notification: The diagnostics message for the missing inner is: The System object is missing, please drag it on the top layer of your model Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSources): time 0.3472/0.4533, allocations: 105.7 MB / 0.6005 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.4558, allocations: 0.9275 MB / 0.6014 GB, free: 15.75 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.4561, allocations: 23.81 kB / 0.6014 GB, free: 15.72 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007058/0.4568, allocations: 305.5 kB / 0.6017 GB, free: 15.42 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006553/0.4575, allocations: 444.9 kB / 0.6021 GB, free: 14.98 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01083/0.4683, allocations: 4.501 MB / 0.6065 GB, free: 10.46 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.47, allocations: 1.315 MB / 0.6078 GB, free: 9.145 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005616/0.4706, allocations: 474.9 kB / 0.6083 GB, free: 8.668 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/0.471, allocations: 446.2 kB / 0.6087 GB, free: 8.23 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004388/0.4715, allocations: 421.8 kB / 0.6091 GB, free: 7.816 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.261e-05/0.4715, allocations: 36 kB / 0.6091 GB, free: 7.781 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008118/0.4797, allocations: 4.408 MB / 0.6134 GB, free: 3.367 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.4798, allocations: 103.5 kB / 0.6135 GB, free: 3.266 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004055/0.4803, allocations: 362 kB / 0.6139 GB, free: 2.91 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004587/0.4849, allocations: 3.091 MB / 0.6169 GB, free: 15.81 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4849, allocations: 4 kB / 0.6169 GB, free: 15.8 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4849, allocations: 4 kB / 0.6169 GB, free: 15.8 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.4849, allocations: 0 / 0.6169 GB, free: 15.8 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001618/0.4865, allocations: 1.289 MB / 0.6182 GB, free: 14.46 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4866, allocations: 11.89 kB / 0.6182 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.924e-05/0.4866, allocations: 90.7 kB / 0.6183 GB, free: 14.35 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.4868, allocations: 87.91 kB / 0.6183 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006097/0.4874, allocations: 499.5 kB / 0.6188 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.4874, allocations: 40.94 kB / 0.6189 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.4875, allocations: 48 kB / 0.6189 GB, free: 13.65 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.4882, allocations: 0.61 MB / 0.6195 GB, free: 12.92 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.4882, allocations: 7.938 kB / 0.6195 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.4883, allocations: 20 kB / 0.6195 GB, free: 12.89 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.4883, allocations: 12 kB / 0.6195 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003892/0.4887, allocations: 259.4 kB / 0.6198 GB, free: 12.63 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004324/0.493, allocations: 7.085 MB / 0.6267 GB, free: 4.758 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.793e-05/0.4931, allocations: 173.3 kB / 0.6269 GB, free: 4.578 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.4931, allocations: 80.14 kB / 0.6269 GB, free: 4.496 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.4932, allocations: 79.22 kB / 0.627 GB, free: 4.418 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.908e-05/0.4932, allocations: 109.8 kB / 0.6271 GB, free: 4.301 MB / 478.1 MB Notification: Performance of pre-optimization done (n=0): time 1.313e-06/0.4932, allocations: 0 / 0.6271 GB, free: 4.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001364/0.4934, allocations: 108.8 kB / 0.6272 GB, free: 4.188 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.4934, allocations: 134.6 kB / 0.6274 GB, free: 4.043 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008271/0.4943, allocations: 0.7685 MB / 0.6281 GB, free: 3.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.4943, allocations: 29.7 kB / 0.6281 GB, free: 3.215 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.4946, allocations: 383.2 kB / 0.6285 GB, free: 2.836 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.729e-06/0.4946, allocations: 4 kB / 0.6285 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/0.4946, allocations: 37.61 kB / 0.6285 GB, free: 2.789 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4948, allocations: 317.9 kB / 0.6288 GB, free: 2.473 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.341e-05/0.4948, allocations: 12 kB / 0.6289 GB, free: 2.461 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.846e-05/0.4949, allocations: 98.27 kB / 0.6289 GB, free: 2.328 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.495, allocations: 114.1 kB / 0.6291 GB, free: 2.18 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.495, allocations: 4 kB / 0.6291 GB, free: 2.176 MB / 478.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003291/0.4954, allocations: 192.5 kB / 0.6292 GB, free: 1.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.4954, allocations: 12.28 kB / 0.6293 GB, free: 1.969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.4954, allocations: 8 kB / 0.6293 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.4954, allocations: 4 kB / 0.6293 GB, free: 1.957 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.4956, allocations: 27.98 kB / 0.6293 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.4956, allocations: 3.938 kB / 0.6293 GB, free: 1.926 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.4958, allocations: 55.28 kB / 0.6293 GB, free: 1.871 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.4958, allocations: 8 kB / 0.6294 GB, free: 1.863 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.496, allocations: 233.9 kB / 0.6296 GB, free: 1.625 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.4962, allocations: 188 kB / 0.6298 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.4963, allocations: 167.7 kB / 0.6299 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.384e-05/0.4964, allocations: 192.1 kB / 0.6301 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.928e-05/0.4965, allocations: 176.3 kB / 0.6303 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.989e-05/0.4966, allocations: 180.2 kB / 0.6304 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005257/0.4971, allocations: 0.6455 MB / 0.6311 GB, free: 0 / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.974e-05/0.4972, allocations: 109 kB / 0.6312 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.535e-05/0.4972, allocations: 104.9 kB / 0.6313 GB, free: 15.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.296e-05/0.4973, allocations: 180.3 kB / 0.6314 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.508e-05/0.4974, allocations: 180.2 kB / 0.6316 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.323e-05/0.4974, allocations: 184.1 kB / 0.6318 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.609e-05/0.4975, allocations: 176.3 kB / 0.632 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.4977, allocations: 398.8 kB / 0.6323 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.4979, allocations: 249.1 kB / 0.6326 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.498, allocations: 180.2 kB / 0.6328 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.4982, allocations: 101 kB / 0.6329 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.904e-05/0.4983, allocations: 188.2 kB / 0.633 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.4984, allocations: 105 kB / 0.6331 GB, free: 13.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005925/0.499, allocations: 0.531 MB / 0.6336 GB, free: 13.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.499, allocations: 0 / 0.6336 GB, free: 13.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002026/0.501, allocations: 0.7455 MB / 0.6344 GB, free: 12.48 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002608/0.5036, allocations: 1.713 MB / 0.636 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.5037, allocations: 47.84 kB / 0.6361 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5038, allocations: 0 / 0.6361 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.182e-06/0.5038, allocations: 0.75 kB / 0.6361 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.5061, allocations: 0.8887 MB / 0.637 GB, free: 9.793 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005014/0.5111, allocations: 4.724 MB / 0.6416 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.5115, allocations: 0.882 MB / 0.6424 GB, free: 3.965 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.5118, allocations: 125.6 kB / 0.6426 GB, free: 3.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.5121, allocations: 251.3 kB / 0.6428 GB, free: 3.594 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5121, allocations: 0 / 0.6428 GB, free: 3.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06058/0.5727, allocations: 33.84 MB / 0.6758 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.862/9.434, allocations: 0 / 0.6758 GB, free: 1.648 MB / 0.5137 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSources.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe 2>&1)