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.001448/0.001448, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001385/0.001385, allocations: 193.4 kB / 18 MB, free: 5.074 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.312/1.312, 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.2697/0.2697, 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.001923/0.001923, allocations: 71.89 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.1017, 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.9693/1.071, allocations: 106.3 MB / 0.601 GB, free: 148 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/1.074, allocations: 0.9276 MB / 0.6019 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004267/1.074, allocations: 27.69 kB / 0.602 GB, free: 15.19 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008376/1.075, allocations: 305.5 kB / 0.6023 GB, free: 14.89 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008558/1.076, allocations: 441 kB / 0.6027 GB, free: 14.45 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01199/1.088, allocations: 4.497 MB / 0.6071 GB, free: 9.938 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001901/1.09, allocations: 1.319 MB / 0.6084 GB, free: 8.613 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006907/1.09, allocations: 470.8 kB / 0.6088 GB, free: 8.141 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000564/1.091, allocations: 446.2 kB / 0.6092 GB, free: 7.703 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/1.092, allocations: 429.8 kB / 0.6096 GB, free: 7.281 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/1.092, allocations: 39.98 kB / 0.6097 GB, free: 7.242 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009345/1.101, allocations: 4.397 MB / 0.614 GB, free: 2.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/1.101, allocations: 107.5 kB / 0.6141 GB, free: 2.734 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/1.102, allocations: 362 kB / 0.6144 GB, free: 2.379 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005695/1.107, allocations: 3.097 MB / 0.6174 GB, free: 15.27 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/1.107, allocations: 0 / 0.6174 GB, free: 15.27 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.703e-06/1.107, allocations: 4 kB / 0.6174 GB, free: 15.27 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/1.107, allocations: 0 / 0.6174 GB, free: 15.27 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.002047/1.109, allocations: 1.325 MB / 0.6187 GB, free: 13.88 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/1.109, allocations: 11.89 kB / 0.6188 GB, free: 13.87 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/1.11, allocations: 90.7 kB / 0.6188 GB, free: 13.77 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/1.11, allocations: 100.3 kB / 0.6189 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007208/1.11, allocations: 0.4922 MB / 0.6194 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/1.111, allocations: 40.94 kB / 0.6195 GB, free: 13.11 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/1.111, allocations: 48 kB / 0.6195 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009329/1.112, allocations: 0.61 MB / 0.6201 GB, free: 12.33 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/1.112, allocations: 7.938 kB / 0.6201 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/1.112, allocations: 20 kB / 0.6201 GB, free: 12.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/1.112, allocations: 12 kB / 0.6201 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000455/1.112, allocations: 255.4 kB / 0.6204 GB, free: 12.04 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005817/1.118, allocations: 7.094 MB / 0.6273 GB, free: 4.164 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/1.118, allocations: 177 kB / 0.6275 GB, free: 3.98 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.195e-05/1.118, allocations: 84.14 kB / 0.6276 GB, free: 3.895 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/1.118, allocations: 75.28 kB / 0.6276 GB, free: 3.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/1.118, allocations: 105.8 kB / 0.6277 GB, free: 3.707 MB / 478.1 MB Notification: Performance of pre-optimization done (n=0): time 1.292e-06/1.118, allocations: 4 kB / 0.6277 GB, free: 3.703 MB / 478.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001656/1.118, allocations: 113.1 kB / 0.6278 GB, free: 3.586 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/1.118, allocations: 126.7 kB / 0.628 GB, free: 3.449 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/1.12, allocations: 0.7803 MB / 0.6287 GB, free: 2.645 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/1.12, allocations: 25.7 kB / 0.6287 GB, free: 2.613 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/1.12, allocations: 395.4 kB / 0.6291 GB, free: 2.223 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.805e-06/1.12, allocations: 0 / 0.6291 GB, free: 2.223 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/1.12, allocations: 33.7 kB / 0.6292 GB, free: 2.184 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/1.12, allocations: 313.9 kB / 0.6295 GB, free: 1.871 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.691e-05/1.12, allocations: 23.98 kB / 0.6295 GB, free: 1.848 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/1.12, allocations: 86.3 kB / 0.6296 GB, free: 1.727 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/1.121, allocations: 118.1 kB / 0.6297 GB, free: 1.574 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.121, allocations: 0 / 0.6297 GB, free: 1.574 MB / 478.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003698/1.121, allocations: 204.9 kB / 0.6299 GB, free: 1.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.121, allocations: 11.89 kB / 0.6299 GB, free: 1.355 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/1.121, allocations: 4.375 kB / 0.6299 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/1.121, allocations: 8 kB / 0.6299 GB, free: 1.344 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/1.121, allocations: 23.98 kB / 0.6299 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/1.121, allocations: 7.938 kB / 0.6299 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/1.121, allocations: 51.52 kB / 0.63 GB, free: 1.262 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/1.121, allocations: 8 kB / 0.63 GB, free: 1.254 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.0002209/1.122, allocations: 229.9 kB / 0.6302 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/1.122, allocations: 192.3 kB / 0.6304 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/1.122, allocations: 175.7 kB / 0.6305 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.549e-05/1.122, allocations: 176.3 kB / 0.6307 GB, free: 476 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.638e-05/1.122, allocations: 188.2 kB / 0.6309 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.741e-05/1.122, allocations: 176.3 kB / 0.6311 GB, free: 96 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006515/1.123, allocations: 0.6494 MB / 0.6317 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.388e-05/1.123, allocations: 101 kB / 0.6318 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.006e-05/1.123, allocations: 109 kB / 0.6319 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.831e-05/1.123, allocations: 184.2 kB / 0.6321 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.356e-05/1.123, allocations: 176.3 kB / 0.6322 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.848e-05/1.123, allocations: 188.1 kB / 0.6324 GB, free: 14.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.135e-05/1.123, allocations: 176.3 kB / 0.6326 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/1.124, allocations: 395.3 kB / 0.633 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/1.124, allocations: 253.5 kB / 0.6332 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/1.124, allocations: 180.2 kB / 0.6334 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/1.124, allocations: 105 kB / 0.6335 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/1.124, allocations: 188.2 kB / 0.6337 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.876e-05/1.124, allocations: 101 kB / 0.6338 GB, free: 13.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006132/1.125, allocations: 0.531 MB / 0.6343 GB, free: 12.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.125, allocations: 0 / 0.6343 GB, free: 12.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001579/1.126, allocations: 0.7598 MB / 0.635 GB, free: 11.85 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.002572/1.129, allocations: 1.74 MB / 0.6367 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001071/1.129, allocations: 39.92 kB / 0.6368 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.129, allocations: 0 / 0.6368 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.287e-06/1.129, allocations: 3.938 kB / 0.6368 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/1.131, allocations: 0.8855 MB / 0.6376 GB, free: 9.145 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/1.137, allocations: 4.753 MB / 0.6423 GB, free: 4.195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/1.137, allocations: 0.882 MB / 0.6431 GB, free: 3.285 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003263/1.138, allocations: 121.6 kB / 0.6432 GB, free: 3.164 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/1.138, allocations: 263.3 kB / 0.6435 GB, free: 2.902 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/1.138, allocations: 0 / 0.6435 GB, free: 2.902 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.494/5.631, allocations: 33.99 MB / 0.6767 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/20.57, allocations: 12.03 kB / 0.6767 GB, free: 0.7969 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)