Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.001105/0.001105, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001108/0.001108, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.236/1.236, 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.251/0.251, 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.001695/0.001695, allocations: 71.95 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08055/0.08226, allocations: 59.16 MB / 449.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003642/0.08593, allocations: 2.645 MB / 452 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.08721, allocations: 0.7448 MB / 452.7 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.08743, allocations: 7.938 kB / 452.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.0876, allocations: 47.52 kB / 452.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003178/0.08793, allocations: 123 kB / 452.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.08815, allocations: 83.83 kB / 453 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003871/0.08855, allocations: 394.2 kB / 453.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.08874, allocations: 85.42 kB / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.08894, allocations: 155.3 kB / 453.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.08916, allocations: 163.2 kB / 453.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.596e-05/0.08922, allocations: 24 kB / 453.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.212e-05/0.08931, allocations: 36 kB / 453.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.08938, allocations: 67.64 kB / 453.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.08953, allocations: 167.1 kB / 454.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.08985, allocations: 319 kB / 454.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.08986, allocations: 0 / 454.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.08987, allocations: 0 / 454.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.08988, allocations: 0 / 454.4 MB, free: 4.609 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000985/0.09087, allocations: 0.6659 MB / 455 MB, free: 3.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.09091, allocations: 11.89 kB / 455 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.282e-05/0.09097, allocations: 58.73 kB / 455.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.09108, allocations: 40.47 kB / 455.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.09142, allocations: 319.9 kB / 455.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.09144, allocations: 16.81 kB / 455.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.09149, allocations: 28.38 kB / 455.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003792/0.09187, allocations: 246.8 kB / 455.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.0919, allocations: 3.938 kB / 455.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.09192, allocations: 12 kB / 455.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.09193, allocations: 4 kB / 455.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.0923, allocations: 181.6 kB / 455.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.0935, allocations: 0.8633 MB / 456.8 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.09382, allocations: 182.6 kB / 457 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.09402, allocations: 120.7 kB / 457.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.09405, allocations: 0 / 457.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.09408, allocations: 38.56 kB / 457.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.123e-06/0.09409, allocations: 0 / 457.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001284/0.09538, allocations: 0.7382 MB / 457.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.09542, allocations: 55.41 kB / 457.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.0957, allocations: 300.5 kB / 458.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.09573, allocations: 33.7 kB / 458.2 MB, free: 464 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.09585, allocations: 180.6 kB / 458.4 MB, free: 280 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.51e-05/0.09592, allocations: 94.56 kB / 458.5 MB, free: 184 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/0.096, allocations: 53.7 kB / 458.6 MB, free: 124 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.09612, allocations: 342.8 kB / 458.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.09629, allocations: 75.95 kB / 459 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.09648, allocations: 114.6 kB / 459.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003308/0.09682, allocations: 188.2 kB / 459.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.09683, allocations: 0 / 459.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006113/0.09744, allocations: 330.8 kB / 459.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.09747, allocations: 8 kB / 459.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.09748, allocations: 0 / 459.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.09774, allocations: 56.81 kB / 459.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.09811, allocations: 83.94 kB / 459.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.1005, allocations: 3.024 MB / 462.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.1007, allocations: 23.89 kB / 462.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.1007, allocations: 12.19 kB / 462.8 MB, free: 11.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.1008, allocations: 138.9 kB / 462.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.1009, allocations: 31.62 kB / 463 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004577/0.1014, allocations: 269.4 kB / 463.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1014, allocations: 12 kB / 463.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.1014, allocations: 0 / 463.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1014, allocations: 3.938 kB / 463.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008719/0.1023, allocations: 0.6545 MB / 463.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1023, allocations: 0 / 463.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.1026, allocations: 63.91 kB / 464 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.1026, allocations: 7.984 kB / 464 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1027, allocations: 11.94 kB / 464 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1027, allocations: 4 kB / 464 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1027, allocations: 3.938 kB / 464 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006411/0.1033, allocations: 442.8 kB / 464.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.1034, allocations: 120.8 kB / 464.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.1035, allocations: 19.92 kB / 464.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1037, allocations: 8 kB / 464.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.1037, allocations: 19.97 kB / 464.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.1038, allocations: 4 kB / 464.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.104, allocations: 219.1 kB / 464.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.104, allocations: 0 / 464.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1043, allocations: 68 kB / 464.9 MB, free: 9.387 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * 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 (28): * Single equations (assignments): 28 * 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.0008871/0.1052, allocations: 0.9782 MB / 465.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008688/0.1061, allocations: 378.5 kB / 466.2 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.1061, allocations: 4 kB / 466.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.1063, allocations: 107.8 kB / 466.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.1067, allocations: 66.19 kB / 466.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/0.1111, allocations: 3.38 MB / 469.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1114, allocations: 0.7876 MB / 470.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.1116, allocations: 42.94 kB / 470.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.1117, allocations: 111.4 kB / 470.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of SimCode: time 1.633e-06/0.1117, allocations: 0 / 470.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.1379, allocations: 6.842 MB / 477.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/8.862, allocations: 4 kB / 477.6 MB, free: 12.47 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.006 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)