Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.001475/0.001475, allocations: 106.5 kB / 16.92 MB, free: 5.781 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.001654/0.001654, 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.289/1.289, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.263/0.263, allocations: 48.85 MB / 319.9 MB, free: 11.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.001499/0.0015, allocations: 67.98 kB / 390.2 MB, free: 48.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.08174, allocations: 59.15 MB / 449.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.00365/0.08542, allocations: 2.295 MB / 451.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.08663, allocations: 0.6436 MB / 452.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.08684, allocations: 7.938 kB / 452.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.08698, allocations: 27.66 kB / 452.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.08725, allocations: 87.33 kB / 452.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.08745, allocations: 63.86 kB / 452.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.08783, allocations: 278.8 kB / 452.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.088, allocations: 69.59 kB / 452.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.0882, allocations: 119.5 kB / 452.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.08838, allocations: 115.4 kB / 453 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.08843, allocations: 20 kB / 453 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.0885, allocations: 20 kB / 453.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.72e-05/0.08857, allocations: 51.78 kB / 453.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.08868, allocations: 123.3 kB / 453.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.08894, allocations: 231.1 kB / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.08895, allocations: 0 / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08896, allocations: 0 / 453.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.08898, allocations: 4 kB / 453.5 MB, free: 5.52 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008748/0.08986, allocations: 0.5539 MB / 454 MB, free: 4.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.0899, allocations: 15.89 kB / 454 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.797e-05/0.08995, allocations: 54.67 kB / 454.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.09006, allocations: 36.56 kB / 454.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.09037, allocations: 266.7 kB / 454.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.09044, allocations: 42.27 kB / 454.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.09048, allocations: 24.03 kB / 454.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.0908, allocations: 179 kB / 454.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.09082, allocations: 3.938 kB / 454.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.09085, allocations: 8 kB / 454.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.09086, allocations: 4 kB / 454.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.09114, allocations: 123.9 kB / 454.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009504/0.0921, allocations: 0.6735 MB / 455.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.09248, allocations: 146.5 kB / 455.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.09269, allocations: 84.81 kB / 455.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.09272, allocations: 4 kB / 455.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.09275, allocations: 34.56 kB / 455.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.363e-06/0.09276, allocations: 0 / 455.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001108/0.09387, allocations: 0.5723 MB / 456.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.09391, allocations: 55.41 kB / 456.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.09415, allocations: 237 kB / 456.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.09418, allocations: 33.7 kB / 456.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.09428, allocations: 144.3 kB / 456.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.09434, allocations: 67 kB / 456.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.181e-05/0.09442, allocations: 45.7 kB / 456.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.09455, allocations: 334.7 kB / 457.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.0947, allocations: 63.95 kB / 457.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.09485, allocations: 81.62 kB / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.09513, allocations: 145.5 kB / 457.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.09514, allocations: 0 / 457.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003683/0.09552, allocations: 209.2 kB / 457.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.09554, allocations: 4 kB / 457.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.09556, allocations: 0 / 457.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.09558, allocations: 7.938 kB / 457.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.096, allocations: 75.89 kB / 457.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.09601, allocations: 0 / 457.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.09616, allocations: 20.02 kB / 457.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.09619, allocations: 12 kB / 457.8 MB, free: 0.9062 MB / 334.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001159/0.09631, allocations: 130.7 kB / 457.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.09638, allocations: 19.72 kB / 457.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.09644, allocations: 30.17 kB / 457.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.09645, allocations: 0 / 457.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.09646, allocations: 3.938 kB / 458 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.09647, allocations: 3.938 kB / 458 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007931/0.09727, allocations: 0.5464 MB / 458.5 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.09729, allocations: 0 / 458.5 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.09768, allocations: 63.89 kB / 458.6 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.09769, allocations: 0 / 458.6 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.09771, allocations: 4 kB / 458.6 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.09773, allocations: 7.938 kB / 458.6 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.09773, allocations: 0 / 458.6 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.09832, allocations: 347.5 kB / 458.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.09844, allocations: 108.8 kB / 459 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.09848, allocations: 4 kB / 459 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.09864, allocations: 15.92 kB / 459 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.09871, allocations: 11.98 kB / 459.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.09873, allocations: 8 kB / 459.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.09889, allocations: 176.4 kB / 459.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0989, allocations: 0 / 459.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.09918, allocations: 44 kB / 459.3 MB, free: 15.3 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: 1 (BreakerCommand.y) * 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.0008006/0.09999, allocations: 0.892 MB / 460.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.1004, allocations: 155.7 kB / 460.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1004, allocations: 0 / 460.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.1006, allocations: 75.91 kB / 460.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.101, allocations: 40.41 kB / 460.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.1047, allocations: 2.621 MB / 463.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1051, allocations: 0.7478 MB / 463.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.1052, allocations: 21.94 kB / 463.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1054, allocations: 71.42 kB / 463.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1054, allocations: 0 / 463.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.1265, allocations: 4.429 MB / 468.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.948/7.074, allocations: 9.141 kB / 468.3 MB, free: 6.047 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3_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_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)