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.0009756/0.0009758, allocations: 88.16 kB / 16.31 MB, free: 5.543 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.0009564/0.0009564, allocations: 183.6 kB / 17.21 MB, free: 5.461 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.49/1.49, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3174/0.3174, allocations: 48.78 MB / 320.4 MB, free: 11.23 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.0005157/0.0005158, allocations: 13.56 kB / 391.3 MB, free: 50.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1457, allocations: 60.28 MB / 451.5 MB, free: 9.438 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/Water.mo:186:5-186: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:186:5-186: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.07993/0.2257, allocations: 80.58 MB / 0.5196 GB, free: 8.648 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.2286, allocations: 1.051 MB / 0.5207 GB, free: 7.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004785/0.2291, allocations: 27.75 kB / 0.5207 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.2298, allocations: 222.2 kB / 0.5209 GB, free: 7.348 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009321/0.2308, allocations: 0.5083 MB / 0.5214 GB, free: 6.836 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01215/0.2429, allocations: 3.497 MB / 0.5248 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00207/0.245, allocations: 1.537 MB / 0.5263 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.2456, allocations: 334 kB / 0.5266 GB, free: 1.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005105/0.2461, allocations: 394.2 kB / 0.527 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.2466, allocations: 394 kB / 0.5274 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.2466, allocations: 16 kB / 0.5274 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.292/0.5386, allocations: 3.831 MB / 0.5311 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.5389, allocations: 79.27 kB / 0.5312 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.5393, allocations: 166.7 kB / 0.5314 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005274/0.5446, allocations: 1.977 MB / 0.5333 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.5446, allocations: 2.203 kB / 0.5333 GB, free: 15.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5446, allocations: 3 kB / 0.5333 GB, free: 15.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.5446, allocations: 0 / 0.5333 GB, free: 15.3 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.00394/0.5486, allocations: 1.163 MB / 0.5345 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.5487, allocations: 13.94 kB / 0.5345 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.5488, allocations: 94.23 kB / 0.5346 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.5489, allocations: 87.44 kB / 0.5346 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006916/0.5496, allocations: 463.9 kB / 0.5351 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.5497, allocations: 35.66 kB / 0.5351 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.708e-05/0.5497, allocations: 46.72 kB / 0.5352 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009238/0.5507, allocations: 0.6012 MB / 0.5357 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.5507, allocations: 8.172 kB / 0.5358 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.759e-05/0.5508, allocations: 24.39 kB / 0.5358 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/0.5508, allocations: 14.69 kB / 0.5358 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.5512, allocations: 247 kB / 0.536 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00542/0.5566, allocations: 7.081 MB / 0.5429 GB, free: 23.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.183e-05/0.5568, allocations: 170 kB / 0.5431 GB, free: 23.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.5568, allocations: 84.14 kB / 0.5432 GB, free: 23.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.5569, allocations: 75.28 kB / 0.5433 GB, free: 22.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.5569, allocations: 110 kB / 0.5434 GB, free: 22.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.973e-06/0.5569, allocations: 0 / 0.5434 GB, free: 22.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0002046/0.5572, allocations: 110.8 kB / 0.5435 GB, free: 22.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.5572, allocations: 132.3 kB / 0.5436 GB, free: 22.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.5584, allocations: 0.7645 MB / 0.5443 GB, free: 22.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.5584, allocations: 29.7 kB / 0.5444 GB, free: 22.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.5587, allocations: 387.6 kB / 0.5447 GB, free: 22.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.5587, allocations: 3.562 kB / 0.5447 GB, free: 22.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.5588, allocations: 3.25 kB / 0.5447 GB, free: 22.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5589, allocations: 311 kB / 0.545 GB, free: 22.01 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.844e-05/0.5589, allocations: 18.97 kB / 0.5451 GB, free: 22.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.28e-05/0.559, allocations: 94.33 kB / 0.5452 GB, free: 21.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.915e-05/0.5591, allocations: 25.69 kB / 0.5452 GB, free: 21.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5591, allocations: 1.188 kB / 0.5452 GB, free: 21.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003995/0.5595, allocations: 205.4 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.5596, allocations: 10.06 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5596, allocations: 8.781 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.5596, allocations: 3.531 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.5597, allocations: 30.05 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.5598, allocations: 3.375 kB / 0.5454 GB, free: 21.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.5601, allocations: 47.08 kB / 0.5455 GB, free: 21.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.5601, allocations: 10.34 kB / 0.5455 GB, free: 21.8 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.5604, allocations: 231.1 kB / 0.5457 GB, free: 21.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.5606, allocations: 192.5 kB / 0.5459 GB, free: 21.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.5607, allocations: 167.6 kB / 0.546 GB, free: 21.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-05/0.5608, allocations: 180.6 kB / 0.5462 GB, free: 21.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.983e-05/0.5609, allocations: 180 kB / 0.5464 GB, free: 20.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-05/0.561, allocations: 183.4 kB / 0.5466 GB, free: 20.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.5616, allocations: 0.6482 MB / 0.5472 GB, free: 20.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.893e-05/0.5616, allocations: 105.8 kB / 0.5473 GB, free: 20.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.367e-05/0.5617, allocations: 102.5 kB / 0.5474 GB, free: 20.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-05/0.5618, allocations: 182.2 kB / 0.5476 GB, free: 19.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-05/0.5619, allocations: 181.7 kB / 0.5477 GB, free: 19.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.88e-05/0.562, allocations: 176.9 kB / 0.5479 GB, free: 19.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.351e-05/0.562, allocations: 185.9 kB / 0.5481 GB, free: 19.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.5623, allocations: 386.7 kB / 0.5485 GB, free: 19.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.5625, allocations: 261.1 kB / 0.5487 GB, free: 18.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.5626, allocations: 180.5 kB / 0.5489 GB, free: 18.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.5628, allocations: 103.4 kB / 0.549 GB, free: 18.54 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.5629, allocations: 186.5 kB / 0.5492 GB, free: 18.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.647e-05/0.563, allocations: 107.7 kB / 0.5493 GB, free: 18.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006643/0.5636, allocations: 0.5229 MB / 0.5498 GB, free: 18.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5636, allocations: 0 / 0.5498 GB, free: 18.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005038/0.5687, allocations: 0.7371 MB / 0.5505 GB, free: 18.04 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005774/0.5745, allocations: 1.701 MB / 0.5521 GB, free: 17.05 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.5747, allocations: 48.3 kB / 0.5522 GB, free: 17.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5747, allocations: 4.688 kB / 0.5522 GB, free: 17.05 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.5748, allocations: 1 kB / 0.5522 GB, free: 17.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.5774, allocations: 0.9509 MB / 0.5531 GB, free: 16.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/0.5839, allocations: 3.574 MB / 0.5566 GB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.5844, allocations: 0.8772 MB / 0.5575 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005078/0.5849, allocations: 125.4 kB / 0.5576 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.5852, allocations: 256.1 kB / 0.5578 GB, free: 14.37 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5852, allocations: 0.9062 kB / 0.5578 GB, free: 14.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06024/0.6454, allocations: 33.3 MB / 0.5904 GB, free: 0 / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/0.6457, allocations: 169.5 kB / 0.5905 GB, free: 15.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/3.406, allocations: 0 / 0.5905 GB, free: 15.77 MB / 446.1 MB (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/linux/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) Environment - environmentSimulation: