Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.0011/0.0011, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.001172/0.001172, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.303/1.303, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.262/0.262, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001421/0.001421, allocations: 69.72 kB / 390.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.08387, allocations: 59.16 MB / 449.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003045/0.08694, allocations: 2.279 MB / 451.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009476/0.08791, allocations: 0.6553 MB / 452.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.08803, allocations: 4 kB / 452.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.08815, allocations: 31.59 kB / 452.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.08837, allocations: 87.31 kB / 452.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.08853, allocations: 51.88 kB / 452.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.0888, allocations: 274.8 kB / 452.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.08895, allocations: 60.72 kB / 452.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.08909, allocations: 111.5 kB / 452.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.08925, allocations: 115.4 kB / 453 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.08929, allocations: 16 kB / 453 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.08936, allocations: 28 kB / 453 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.249e-05/0.08941, allocations: 51.77 kB / 453.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.606e-05/0.08951, allocations: 115.3 kB / 453.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.08973, allocations: 215.4 kB / 453.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.08974, allocations: 4 kB / 453.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.08975, allocations: 0 / 453.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.08976, allocations: 3.984 kB / 453.4 MB, free: 5.562 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007456/0.09051, allocations: 0.5529 MB / 454 MB, free: 4.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.09055, allocations: 11.89 kB / 454 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.09061, allocations: 54.61 kB / 454 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.236e-05/0.09069, allocations: 32.56 kB / 454.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.09095, allocations: 262.8 kB / 454.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.09097, allocations: 12.38 kB / 454.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.09101, allocations: 16.38 kB / 454.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.0913, allocations: 183.2 kB / 454.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.09132, allocations: 0 / 454.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.09134, allocations: 4 kB / 454.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.09135, allocations: 4 kB / 454.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.09161, allocations: 119.8 kB / 454.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008282/0.09244, allocations: 0.654 MB / 455.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.09269, allocations: 138.4 kB / 455.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.09283, allocations: 76.86 kB / 455.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.09286, allocations: 0 / 455.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.09289, allocations: 38.56 kB / 455.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.012e-06/0.09289, allocations: 0 / 455.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009863/0.09388, allocations: 0.5475 MB / 456.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.09393, allocations: 51.41 kB / 456.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.09413, allocations: 229 kB / 456.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.09416, allocations: 33.7 kB / 456.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.09424, allocations: 148.2 kB / 456.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.667e-05/0.09429, allocations: 71 kB / 456.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.09436, allocations: 45.7 kB / 456.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.09446, allocations: 334.8 kB / 457 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.09459, allocations: 51.92 kB / 457 MB, free: 1.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.09472, allocations: 81.53 kB / 457.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.09496, allocations: 129.5 kB / 457.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.09496, allocations: 0 / 457.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003144/0.09528, allocations: 201.4 kB / 457.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.0953, allocations: 4 kB / 457.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.09531, allocations: 0 / 457.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.09533, allocations: 4 kB / 457.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/0.09569, allocations: 67.89 kB / 457.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009439/0.09664, allocations: 1.441 MB / 459 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.09678, allocations: 12.02 kB / 459 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.09681, allocations: 7.938 kB / 459 MB, free: 15.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/0.09691, allocations: 133.8 kB / 459.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.09696, allocations: 19.72 kB / 459.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.09728, allocations: 195.8 kB / 459.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.09729, allocations: 0 / 459.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.0973, allocations: 0 / 459.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.09731, allocations: 4 kB / 459.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/0.09796, allocations: 0.5307 MB / 459.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.09797, allocations: 0 / 459.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.09819, allocations: 47.98 kB / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.0982, allocations: 0 / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.09822, allocations: 4 kB / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.09823, allocations: 3.984 kB / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.09823, allocations: 0 / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004487/0.09869, allocations: 344.3 kB / 460.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.537e-05/0.09878, allocations: 112.8 kB / 460.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.09882, allocations: 0 / 460.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.09896, allocations: 11.98 kB / 460.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.09901, allocations: 11.98 kB / 460.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.09903, allocations: 4 kB / 460.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.09918, allocations: 172.4 kB / 460.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09918, allocations: 0 / 460.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.09946, allocations: 48 kB / 460.6 MB, free: 13.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0007033/0.1002, allocations: 0.8803 MB / 461.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.1007, allocations: 179.8 kB / 461.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1007, allocations: 0 / 461.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1009, allocations: 71.91 kB / 461.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.1012, allocations: 44.34 kB / 461.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.104, allocations: 2.569 MB / 464.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.1043, allocations: 0.7482 MB / 465.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.848e-05/0.1044, allocations: 29.52 kB / 465.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.1045, allocations: 79.41 kB / 465.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1046, allocations: 0 / 465.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.1249, allocations: 4.85 MB / 470 MB, free: 4.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.881/7.005, allocations: 19.86 kB / 470.1 MB, free: 4.164 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)