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.00159/0.00159, allocations: 104 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.001636/0.001636, allocations: 196 kB / 18 MB, free: 5.109 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.396/1.396, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2853/0.2853, allocations: 48.84 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.001438/0.001438, allocations: 75.88 kB / 450 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1237, allocations: 59.16 MB / 0.4973 GB, free: 13.76 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.3913/0.5151, allocations: 105.8 MB / 0.6006 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003468/0.5185, allocations: 0.9275 MB / 0.6015 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.5196, allocations: 19.81 kB / 0.6015 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.5208, allocations: 317.4 kB / 0.6018 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001415/0.5222, allocations: 437 kB / 0.6022 GB, free: 14.87 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01725/0.5395, allocations: 4.493 MB / 0.6066 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002856/0.5424, allocations: 1.327 MB / 0.6079 GB, free: 9.027 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009656/0.5434, allocations: 466.9 kB / 0.6084 GB, free: 8.559 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009045/0.5443, allocations: 454.2 kB / 0.6088 GB, free: 8.113 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006957/0.545, allocations: 425.8 kB / 0.6092 GB, free: 7.695 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.951e-05/0.5451, allocations: 39.94 kB / 0.6092 GB, free: 7.656 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01285/0.558, allocations: 4.405 MB / 0.6135 GB, free: 3.246 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.5582, allocations: 103.5 kB / 0.6136 GB, free: 3.145 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006057/0.5589, allocations: 358 kB / 0.614 GB, free: 2.793 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009116/0.568, allocations: 3.095 MB / 0.617 GB, free: 15.69 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.568, allocations: 0 / 0.617 GB, free: 15.69 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5681, allocations: 4 kB / 0.617 GB, free: 15.68 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5681, allocations: 0 / 0.617 GB, free: 15.68 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.002796/0.5709, allocations: 1.289 MB / 0.6183 GB, free: 14.34 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.571, allocations: 15.89 kB / 0.6183 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.5711, allocations: 90.7 kB / 0.6184 GB, free: 14.23 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.5713, allocations: 87.91 kB / 0.6185 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009352/0.5722, allocations: 499.5 kB / 0.6189 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/0.5723, allocations: 40.94 kB / 0.619 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.5724, allocations: 47.98 kB / 0.619 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.5735, allocations: 0.6101 MB / 0.6196 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.5735, allocations: 3.938 kB / 0.6196 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.5736, allocations: 20 kB / 0.6196 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.5736, allocations: 16 kB / 0.6196 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005876/0.5742, allocations: 255.4 kB / 0.6199 GB, free: 12.51 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006447/0.5807, allocations: 7.082 MB / 0.6268 GB, free: 4.645 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.932e-05/0.5808, allocations: 173.1 kB / 0.627 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.559e-05/0.5808, allocations: 92.08 kB / 0.6271 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.5809, allocations: 75.28 kB / 0.6271 GB, free: 4.297 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.5809, allocations: 113.8 kB / 0.6272 GB, free: 4.176 MB / 478.1 MB Notification: Performance of pre-optimization done (n=0): time 1.914e-06/0.5809, allocations: 0 / 0.6272 GB, free: 4.176 MB / 478.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001762/0.5811, allocations: 116.7 kB / 0.6274 GB, free: 4.055 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.5812, allocations: 126.7 kB / 0.6275 GB, free: 3.918 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008522/0.582, allocations: 0.7724 MB / 0.6282 GB, free: 3.121 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.5821, allocations: 25.7 kB / 0.6283 GB, free: 3.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/0.5823, allocations: 387.2 kB / 0.6286 GB, free: 2.707 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.056e-06/0.5823, allocations: 0 / 0.6286 GB, free: 2.707 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.549e-05/0.5824, allocations: 37.61 kB / 0.6287 GB, free: 2.664 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5825, allocations: 321.9 kB / 0.629 GB, free: 2.344 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.8e-05/0.5826, allocations: 12 kB / 0.629 GB, free: 2.332 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.32e-05/0.5827, allocations: 90.3 kB / 0.6291 GB, free: 2.207 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.5828, allocations: 114.1 kB / 0.6292 GB, free: 2.059 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5828, allocations: 0 / 0.6292 GB, free: 2.059 MB / 478.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000315/0.5831, allocations: 196.5 kB / 0.6294 GB, free: 1.859 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.5832, allocations: 11.91 kB / 0.6294 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5832, allocations: 384 / 0.6294 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5832, allocations: 8 kB / 0.6294 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.5833, allocations: 27.92 kB / 0.6294 GB, free: 1.812 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.5833, allocations: 4 kB / 0.6294 GB, free: 1.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.5835, allocations: 51.28 kB / 0.6295 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.5835, allocations: 11.98 kB / 0.6295 GB, free: 1.746 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.0001986/0.5838, allocations: 241.8 kB / 0.6297 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.5839, allocations: 180 kB / 0.6299 GB, free: 1.316 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.584, allocations: 171.6 kB / 0.63 GB, free: 1.141 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.854e-05/0.5841, allocations: 184.2 kB / 0.6302 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-05/0.5841, allocations: 180.2 kB / 0.6304 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.054e-05/0.5842, allocations: 184.2 kB / 0.6306 GB, free: 0.582 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005437/0.5847, allocations: 0.6378 MB / 0.6312 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.485e-05/0.5848, allocations: 109 kB / 0.6313 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.5849, allocations: 108.9 kB / 0.6314 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.629e-05/0.5849, allocations: 180.2 kB / 0.6316 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/0.585, allocations: 184.2 kB / 0.6317 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.877e-05/0.5851, allocations: 180.3 kB / 0.6319 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-05/0.5852, allocations: 176.3 kB / 0.6321 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.5855, allocations: 394.7 kB / 0.6325 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.5857, allocations: 249.1 kB / 0.6327 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.5859, allocations: 180.3 kB / 0.6329 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.5861, allocations: 101 kB / 0.633 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-05/0.5862, allocations: 188.2 kB / 0.6331 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.5862, allocations: 105 kB / 0.6332 GB, free: 13.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006877/0.5869, allocations: 0.5271 MB / 0.6338 GB, free: 13.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5869, allocations: 3.938 kB / 0.6338 GB, free: 13.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002465/0.5894, allocations: 0.7533 MB / 0.6345 GB, free: 12.36 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.003108/0.5925, allocations: 1.713 MB / 0.6362 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.5927, allocations: 47.86 kB / 0.6362 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5927, allocations: 0 / 0.6362 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.164e-06/0.5928, allocations: 0.75 kB / 0.6362 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/0.595, allocations: 0.8848 MB / 0.6371 GB, free: 9.676 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005977/0.6009, allocations: 4.724 MB / 0.6417 GB, free: 4.758 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.6014, allocations: 0.882 MB / 0.6425 GB, free: 3.848 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004218/0.6019, allocations: 121.6 kB / 0.6427 GB, free: 3.727 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.6022, allocations: 255.3 kB / 0.6429 GB, free: 3.477 MB / 494.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6022, allocations: 0 / 0.6429 GB, free: 3.477 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06945/0.6716, allocations: 34.26 MB / 0.6764 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.553/10.23, allocations: 4 kB / 0.6764 GB, free: 1.102 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)