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.001075/0.001075, allocations: 108 kB / 16.92 MB, free: 5.758 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.001187/0.001187, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.472/1.472, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3154/0.3154, allocations: 48.84 MB / 319.9 MB, free: 11.09 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.001822/0.001822, allocations: 68.62 kB / 390.2 MB, free: 48.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1134, allocations: 59.16 MB / 449.3 MB, free: 9.672 MB / 334.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.5437/0.6571, allocations: 105.9 MB / 0.5422 GB, free: 3.766 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.6597, allocations: 0.9296 MB / 0.5431 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004753/0.6602, allocations: 20.06 kB / 0.5431 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007681/0.6609, allocations: 303.2 kB / 0.5434 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007047/0.6617, allocations: 443.3 kB / 0.5438 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01243/0.6741, allocations: 4.493 MB / 0.5482 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.676, allocations: 1.315 MB / 0.5495 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006461/0.6767, allocations: 472.2 kB / 0.5499 GB, free: 2.793 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004523/0.6772, allocations: 445.3 kB / 0.5504 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004957/0.6777, allocations: 433 kB / 0.5508 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.969e-05/0.6777, allocations: 36.97 kB / 0.5508 GB, free: 2.742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008942/0.6867, allocations: 4.311 MB / 0.555 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.6869, allocations: 104.8 kB / 0.5551 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005081/0.6874, allocations: 362.3 kB / 0.5555 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.6928, allocations: 3.077 MB / 0.5585 GB, free: 2.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.6928, allocations: 1.172 kB / 0.5585 GB, free: 2.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6928, allocations: 2.281 kB / 0.5585 GB, free: 2.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.6928, allocations: 0 / 0.5585 GB, free: 2.32 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.001806/0.6947, allocations: 1.286 MB / 0.5597 GB, free: 1.531 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.6947, allocations: 13.8 kB / 0.5597 GB, free: 1.527 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.919e-05/0.6948, allocations: 93.02 kB / 0.5598 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.6949, allocations: 88.19 kB / 0.5599 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.6954, allocations: 483.9 kB / 0.5604 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.6954, allocations: 38.91 kB / 0.5604 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.6955, allocations: 50.59 kB / 0.5605 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006444/0.6962, allocations: 0.6145 MB / 0.5611 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.6962, allocations: 6.188 kB / 0.5611 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.6962, allocations: 24.38 kB / 0.5611 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.6962, allocations: 13.97 kB / 0.5611 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.6966, allocations: 248.7 kB / 0.5613 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004413/0.701, allocations: 7.081 MB / 0.5683 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.239e-05/0.7011, allocations: 171.7 kB / 0.5684 GB, free: 9.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.739e-05/0.7011, allocations: 84.14 kB / 0.5685 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.7011, allocations: 75.28 kB / 0.5686 GB, free: 9.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.7012, allocations: 109.8 kB / 0.5687 GB, free: 9.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 1.122e-06/0.7012, allocations: 0 / 0.5687 GB, free: 9.633 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001394/0.7013, allocations: 107.9 kB / 0.5688 GB, free: 9.562 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.7014, allocations: 130.2 kB / 0.5689 GB, free: 9.426 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.7022, allocations: 0.775 MB / 0.5697 GB, free: 9.273 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.7022, allocations: 25.7 kB / 0.5697 GB, free: 9.242 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.7025, allocations: 385.6 kB / 0.5701 GB, free: 9.121 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.487e-06/0.7025, allocations: 0 / 0.5701 GB, free: 9.121 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/0.7026, allocations: 42.81 kB / 0.5701 GB, free: 9.102 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.7027, allocations: 312.8 kB / 0.5704 GB, free: 8.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.7027, allocations: 17.53 kB / 0.5704 GB, free: 8.789 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.812e-05/0.7028, allocations: 96.73 kB / 0.5705 GB, free: 8.688 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.703, allocations: 115.1 kB / 0.5706 GB, free: 8.578 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.703, allocations: 0 / 0.5706 GB, free: 8.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003122/0.7033, allocations: 193.5 kB / 0.5708 GB, free: 8.492 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.7033, allocations: 5.531 kB / 0.5708 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.7033, allocations: 8.969 kB / 0.5708 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7033, allocations: 3.438 kB / 0.5708 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.918e-05/0.7034, allocations: 32.05 kB / 0.5708 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.7035, allocations: 2.438 kB / 0.5708 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.7037, allocations: 53.28 kB / 0.5709 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.7037, allocations: 7.344 kB / 0.5709 GB, free: 8.445 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.7038, allocations: 238.9 kB / 0.5711 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.704, allocations: 182.6 kB / 0.5713 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.7041, allocations: 173.7 kB / 0.5715 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.25e-05/0.7042, allocations: 185.7 kB / 0.5716 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.134e-05/0.7042, allocations: 184.2 kB / 0.5718 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-05/0.7043, allocations: 178 kB / 0.572 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.7048, allocations: 0.6448 MB / 0.5726 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.486e-05/0.7048, allocations: 109.5 kB / 0.5727 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.7049, allocations: 105 kB / 0.5728 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.386e-05/0.705, allocations: 180.2 kB / 0.573 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.739e-05/0.705, allocations: 183.6 kB / 0.5732 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.126e-05/0.7051, allocations: 178.5 kB / 0.5733 GB, free: 6.223 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-05/0.7052, allocations: 180.2 kB / 0.5735 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.7054, allocations: 398.4 kB / 0.5739 GB, free: 5.676 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.7056, allocations: 244.3 kB / 0.5741 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.7057, allocations: 184 kB / 0.5743 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.7059, allocations: 104.9 kB / 0.5744 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.706, allocations: 186.7 kB / 0.5746 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.706, allocations: 108.9 kB / 0.5747 GB, free: 4.848 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005174/0.7066, allocations: 0.5279 MB / 0.5752 GB, free: 4.738 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7066, allocations: 0 / 0.5752 GB, free: 4.738 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001902/0.7085, allocations: 0.7485 MB / 0.5759 GB, free: 4.629 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 (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.002501/0.711, allocations: 1.706 MB / 0.5776 GB, free: 3.645 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.7111, allocations: 45.92 kB / 0.5776 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7111, allocations: 1.781 kB / 0.5776 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.7111, allocations: 0 / 0.5776 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.7134, allocations: 0.8921 MB / 0.5785 GB, free: 3.094 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.7187, allocations: 4.994 MB / 0.5834 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004531/0.7192, allocations: 0.8772 MB / 0.5842 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.7195, allocations: 126.3 kB / 0.5844 GB, free: 14.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.7197, allocations: 261.7 kB / 0.5846 GB, free: 14.87 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.7197, allocations: 0 / 0.5846 GB, free: 14.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06413/0.7839, allocations: 33.91 MB / 0.6177 GB, free: 13.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.7, allocations: 7.984 kB / 0.6177 GB, free: 13.42 MB / 478.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/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)