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.001343/0.001342, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001486/0.001486, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.506/1.506, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3353/0.3353, allocations: 48.85 MB / 320.1 MB, free: 11 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.002251/0.002251, allocations: 75.89 kB / 450.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1251, allocations: 59.15 MB / 0.4973 GB, free: 13.75 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.3894/0.5146, allocations: 106.4 MB / 0.6011 GB, free: 16 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.5179, allocations: 0.9314 MB / 0.602 GB, free: 15.08 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007091/0.5186, allocations: 19.81 kB / 0.6021 GB, free: 15.06 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.5197, allocations: 309.3 kB / 0.6023 GB, free: 14.76 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001205/0.5209, allocations: 445 kB / 0.6028 GB, free: 14.32 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01351/0.5345, allocations: 4.497 MB / 0.6072 GB, free: 9.805 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.537, allocations: 1.315 MB / 0.6084 GB, free: 8.484 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008097/0.5379, allocations: 470.8 kB / 0.6089 GB, free: 8.012 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007658/0.5386, allocations: 446.2 kB / 0.6093 GB, free: 7.574 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005352/0.5392, allocations: 425.8 kB / 0.6097 GB, free: 7.156 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.86e-05/0.5392, allocations: 35.94 kB / 0.6098 GB, free: 7.121 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009504/0.5488, allocations: 4.409 MB / 0.6141 GB, free: 2.707 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.5489, allocations: 103.5 kB / 0.6142 GB, free: 2.605 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004785/0.5494, allocations: 358 kB / 0.6145 GB, free: 2.254 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007542/0.557, allocations: 3.101 MB / 0.6175 GB, free: 15.14 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.557, allocations: 0 / 0.6175 GB, free: 15.14 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.557, allocations: 0 / 0.6175 GB, free: 15.14 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.557, allocations: 0 / 0.6175 GB, free: 15.14 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.002397/0.5594, allocations: 1.321 MB / 0.6188 GB, free: 13.77 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.5595, allocations: 23.83 kB / 0.6188 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.5596, allocations: 90.7 kB / 0.6189 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.5598, allocations: 100.3 kB / 0.619 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006688/0.5604, allocations: 492.1 kB / 0.6195 GB, free: 13.03 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.5605, allocations: 44.94 kB / 0.6195 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.422e-05/0.5605, allocations: 48 kB / 0.6196 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009175/0.5615, allocations: 0.614 MB / 0.6202 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.5615, allocations: 11.94 kB / 0.6202 GB, free: 12.19 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.094e-05/0.5616, allocations: 23.94 kB / 0.6202 GB, free: 12.17 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.5616, allocations: 16 kB / 0.6202 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005375/0.5622, allocations: 251.4 kB / 0.6205 GB, free: 11.91 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005677/0.5679, allocations: 7.094 MB / 0.6274 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.584e-05/0.568, allocations: 165.1 kB / 0.6276 GB, free: 3.855 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.082e-05/0.568, allocations: 84.08 kB / 0.6276 GB, free: 3.77 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.5681, allocations: 75.28 kB / 0.6277 GB, free: 3.695 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/0.5681, allocations: 113.8 kB / 0.6278 GB, free: 3.574 MB / 478.1 MB Notification: Performance of pre-optimization done (n=0): time 3.737e-06/0.5681, allocations: 0 / 0.6278 GB, free: 3.574 MB / 478.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001777/0.5683, allocations: 121.1 kB / 0.6279 GB, free: 3.449 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.5684, allocations: 126.7 kB / 0.6281 GB, free: 3.312 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009344/0.5694, allocations: 0.7724 MB / 0.6288 GB, free: 2.516 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.5694, allocations: 25.7 kB / 0.6288 GB, free: 2.484 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.5697, allocations: 391.4 kB / 0.6292 GB, free: 2.098 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.612e-06/0.5698, allocations: 7.984 kB / 0.6292 GB, free: 2.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.5698, allocations: 33.7 kB / 0.6293 GB, free: 2.051 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.57, allocations: 317.9 kB / 0.6296 GB, free: 1.734 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.57, allocations: 15.98 kB / 0.6296 GB, free: 1.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.5701, allocations: 90.23 kB / 0.6297 GB, free: 1.594 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.5703, allocations: 106.2 kB / 0.6298 GB, free: 1.453 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5703, allocations: 0 / 0.6298 GB, free: 1.453 MB / 478.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003397/0.5707, allocations: 208.8 kB / 0.63 GB, free: 1.242 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.5707, allocations: 4 kB / 0.63 GB, free: 1.238 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.5707, allocations: 4 kB / 0.63 GB, free: 1.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.5707, allocations: 4 kB / 0.63 GB, free: 1.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.5708, allocations: 27.92 kB / 0.63 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.5709, allocations: 4 kB / 0.63 GB, free: 1.199 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.5711, allocations: 55.88 kB / 0.6301 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.5711, allocations: 12 kB / 0.6301 GB, free: 1.133 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.0002164/0.5713, allocations: 237.7 kB / 0.6303 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.5715, allocations: 180.5 kB / 0.6305 GB, free: 0.707 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001333/0.5716, allocations: 179.6 kB / 0.6306 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.969e-05/0.5717, allocations: 188.2 kB / 0.6308 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.054e-05/0.5718, allocations: 180.3 kB / 0.631 GB, free: 152 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001054/0.5719, allocations: 184.3 kB / 0.6312 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000562/0.5725, allocations: 0.6378 MB / 0.6318 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.985e-05/0.5725, allocations: 112.9 kB / 0.6319 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.362e-05/0.5726, allocations: 105 kB / 0.632 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.247e-05/0.5727, allocations: 176.3 kB / 0.6322 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.009e-05/0.5728, allocations: 184.2 kB / 0.6323 GB, free: 14.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.147e-05/0.5729, allocations: 176.3 kB / 0.6325 GB, free: 14.49 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.273e-05/0.573, allocations: 188.1 kB / 0.6327 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.5732, allocations: 391.2 kB / 0.6331 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.5734, allocations: 253.6 kB / 0.6333 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.5736, allocations: 184.2 kB / 0.6335 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.5738, allocations: 104.9 kB / 0.6336 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.5739, allocations: 180.3 kB / 0.6337 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/0.5739, allocations: 104.9 kB / 0.6338 GB, free: 13.03 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006754/0.5746, allocations: 0.531 MB / 0.6344 GB, free: 12.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5746, allocations: 0 / 0.6344 GB, free: 12.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002205/0.5768, allocations: 0.7636 MB / 0.6351 GB, free: 11.72 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.002991/0.5798, allocations: 1.732 MB / 0.6368 GB, free: 9.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001527/0.58, allocations: 47.86 kB / 0.6368 GB, free: 9.914 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.58, allocations: 0 / 0.6368 GB, free: 9.914 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.997e-06/0.58, allocations: 4 kB / 0.6368 GB, free: 9.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/0.5824, allocations: 0.8816 MB / 0.6377 GB, free: 9.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006416/0.5888, allocations: 4.753 MB / 0.6424 GB, free: 4.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005574/0.5894, allocations: 0.8859 MB / 0.6432 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004226/0.5899, allocations: 125.6 kB / 0.6433 GB, free: 3.031 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.5902, allocations: 251.3 kB / 0.6436 GB, free: 2.781 MB / 494.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5902, allocations: 0 / 0.6436 GB, free: 2.781 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07418/0.6644, allocations: 33.99 MB / 0.6768 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.82/10.48, allocations: 8 kB / 0.6768 GB, free: 0.668 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestSources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ThermoPower_ThermoPower_Test_WaterComponents_TestSources.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSources.pipe 2>&1)