Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001042/0.001042, 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.001034/0.001034, 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.252/1.252, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2568/0.2568, 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.001555/0.001555, allocations: 64.62 kB / 390.2 MB, free: 48.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07557/0.07714, allocations: 59.17 MB / 449.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004297/0.08147, allocations: 3.122 MB / 452.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.08322, allocations: 0.8382 MB / 453.3 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.08361, allocations: 8 kB / 453.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.08386, allocations: 63.25 kB / 453.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004817/0.08436, allocations: 142.8 kB / 453.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.08469, allocations: 123.8 kB / 453.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006105/0.08531, allocations: 0.5179 MB / 454.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.0856, allocations: 149.7 kB / 454.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.08593, allocations: 203.1 kB / 454.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.08628, allocations: 222.9 kB / 454.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.347e-05/0.08637, allocations: 32 kB / 454.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.08651, allocations: 40 kB / 454.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.793e-05/0.08662, allocations: 95.55 kB / 454.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002606/0.08688, allocations: 238.7 kB / 455.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005513/0.08744, allocations: 426.3 kB / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.08746, allocations: 0 / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08747, allocations: 0 / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.08749, allocations: 0 / 455.5 MB, free: 3.441 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001478/0.08897, allocations: 0.7904 MB / 456.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.08902, allocations: 15.89 kB / 456.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.039e-05/0.0891, allocations: 66.72 kB / 456.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.08925, allocations: 56.28 kB / 456.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.08974, allocations: 370 kB / 456.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.08978, allocations: 25.03 kB / 456.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.587e-05/0.08986, allocations: 36.38 kB / 456.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.09039, allocations: 314 kB / 457.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.09042, allocations: 7.844 kB / 457.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.09046, allocations: 16 kB / 457.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.09047, allocations: 8 kB / 457.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.0909, allocations: 222.4 kB / 457.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.09268, allocations: 1.171 MB / 458.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004882/0.09318, allocations: 256 kB / 458.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.0934, allocations: 129.4 kB / 459 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.09343, allocations: 4.281 kB / 459 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.09348, allocations: 38.84 kB / 459 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.09349, allocations: 4 kB / 459 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002115/0.09561, allocations: 1.072 MB / 460.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.09566, allocations: 55.41 kB / 460.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.09604, allocations: 389.5 kB / 460.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.09607, allocations: 29.7 kB / 460.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.09622, allocations: 216.6 kB / 460.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.295e-05/0.09632, allocations: 134 kB / 460.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/0.09642, allocations: 78.03 kB / 461 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.09656, allocations: 350.8 kB / 461.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.09675, allocations: 92.83 kB / 461.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.09697, allocations: 144.6 kB / 461.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.09738, allocations: 252 kB / 461.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.0974, allocations: 4 kB / 461.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005327/0.09793, allocations: 348.8 kB / 462.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.09796, allocations: 8.125 kB / 462.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.09797, allocations: 0 / 462.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.09799, allocations: 4 kB / 462.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/0.09868, allocations: 147.8 kB / 462.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.09972, allocations: 1.441 MB / 463.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.09997, allocations: 12.06 kB / 463.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.1, allocations: 12 kB / 463.8 MB, free: 10.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (48): * Single equations (assignments): 47 * 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 0.0001499/0.1002, allocations: 153.6 kB / 463.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.797e-05/0.1002, allocations: 47.45 kB / 464 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004804/0.1007, allocations: 325.8 kB / 464.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1007, allocations: 0 / 464.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.1007, allocations: 15.88 kB / 464.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1008, allocations: 3.984 kB / 464.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.1018, allocations: 0.7752 MB / 465.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1018, allocations: 3.938 kB / 465.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003884/0.1022, allocations: 75.95 kB / 465.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1022, allocations: 4 kB / 465.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.1022, allocations: 8 kB / 465.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.1023, allocations: 7.938 kB / 465.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1023, allocations: 4 kB / 465.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.1029, allocations: 0.5077 MB / 465.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1031, allocations: 140.5 kB / 465.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.1031, allocations: 11.98 kB / 465.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.1034, allocations: 4 kB / 465.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.573e-05/0.1035, allocations: 23.97 kB / 465.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.1035, allocations: 16 kB / 465.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002517/0.1038, allocations: 263.2 kB / 466.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1038, allocations: 0 / 466.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.1041, allocations: 91.94 kB / 466.2 MB, free: 8.117 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0009921/0.1051, allocations: 1.06 MB / 467.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007648/0.1059, allocations: 299.9 kB / 467.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1059, allocations: 0 / 467.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.1061, allocations: 135.7 kB / 467.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.1066, allocations: 84.48 kB / 467.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/0.1116, allocations: 4.047 MB / 471.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.112, allocations: 0.8274 MB / 472.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001799/0.1122, allocations: 47.25 kB / 472.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.1124, allocations: 155.4 kB / 472.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1124, allocations: 0 / 472.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.1385, allocations: 8.44 MB / 481.3 MB, free: 8.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.27/7.408, allocations: 0 / 481.3 MB, free: 8.805 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)