Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001009/0.001009, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.0009561/0.0009561, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.245/1.245, 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.2563/0.2563, allocations: 48.84 MB / 319.9 MB, free: 11.08 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.00145/0.00145, allocations: 65.83 kB / 390.2 MB, free: 48.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.07997, allocations: 59.16 MB / 449.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004033/0.08404, allocations: 2.957 MB / 452.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.08557, allocations: 0.815 MB / 453.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.08588, allocations: 8 kB / 453.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.0861, allocations: 51.33 kB / 453.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004971/0.08663, allocations: 146.8 kB / 453.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.08693, allocations: 111.8 kB / 453.4 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005867/0.08753, allocations: 486.3 kB / 453.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.0878, allocations: 140.3 kB / 454 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.08813, allocations: 187.2 kB / 454.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003156/0.08846, allocations: 203 kB / 454.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.08858, allocations: 32 kB / 454.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.0887, allocations: 40 kB / 454.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.738e-05/0.08878, allocations: 91.55 kB / 454.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.08898, allocations: 214.7 kB / 454.8 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.08937, allocations: 398.5 kB / 455.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.08939, allocations: 0 / 455.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0894, allocations: 0 / 455.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.08941, allocations: 0 / 455.2 MB, free: 3.781 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001296/0.09071, allocations: 0.7593 MB / 455.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.09076, allocations: 8.031 kB / 455.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.487e-05/0.09084, allocations: 66.72 kB / 456 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.09098, allocations: 56.38 kB / 456.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.0914, allocations: 350.1 kB / 456.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.09144, allocations: 21.03 kB / 456.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.09151, allocations: 44.03 kB / 456.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.09198, allocations: 293.7 kB / 456.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.09201, allocations: 0 / 456.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.09204, allocations: 16 kB / 456.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.09206, allocations: 4 kB / 456.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.09245, allocations: 210.1 kB / 457 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.09408, allocations: 1.124 MB / 458.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.09446, allocations: 240.1 kB / 458.3 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.09466, allocations: 116.8 kB / 458.4 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.09469, allocations: 4 kB / 458.5 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.09472, allocations: 38.56 kB / 458.5 MB, free: 260 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 2.655e-06/0.09473, allocations: 4 kB / 458.5 MB, free: 256 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001675/0.09641, allocations: 0.9217 MB / 459.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.09646, allocations: 59.41 kB / 459.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.0968, allocations: 361.6 kB / 459.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.09683, allocations: 33.7 kB / 459.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.09696, allocations: 212.4 kB / 460.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.454e-05/0.09706, allocations: 118.2 kB / 460.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.09715, allocations: 70 kB / 460.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.09728, allocations: 354.7 kB / 460.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.09746, allocations: 84.7 kB / 460.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.09765, allocations: 133.8 kB / 460.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.09802, allocations: 236 kB / 461 MB, free: 13.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.09804, allocations: 8 kB / 461.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009396/0.09898, allocations: 417 kB / 461.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.09901, allocations: 8.125 kB / 461.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.09903, allocations: 0 / 461.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005857/0.09962, allocations: 120.7 kB / 461.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/0.1, allocations: 95.88 kB / 461.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.1031, allocations: 3.352 MB / 465 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.1034, allocations: 16 kB / 465 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.1034, allocations: 12 kB / 465.1 MB, free: 9.246 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001612/0.1036, allocations: 153.7 kB / 465.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.1036, allocations: 47.42 kB / 465.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004678/0.1041, allocations: 298 kB / 465.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1041, allocations: 4 kB / 465.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1041, allocations: 3.938 kB / 465.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1042, allocations: 4 kB / 465.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00098/0.1051, allocations: 0.7444 MB / 466.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1052, allocations: 0 / 466.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/0.1055, allocations: 79.89 kB / 466.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1055, allocations: 4 kB / 466.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.1056, allocations: 4 kB / 466.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1056, allocations: 7.938 kB / 466.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1056, allocations: 0 / 466.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006393/0.1062, allocations: 0.4909 MB / 466.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.1064, allocations: 128.6 kB / 467 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.1064, allocations: 12 kB / 467 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1066, allocations: 11.98 kB / 467 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.1067, allocations: 15.92 kB / 467 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.1067, allocations: 15.98 kB / 467.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.107, allocations: 255.2 kB / 467.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.107, allocations: 0 / 467.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.1074, allocations: 88 kB / 467.4 MB, free: 6.793 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.0009077/0.1083, allocations: 1.029 MB / 468.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009219/0.1092, allocations: 454 kB / 468.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1092, allocations: 0 / 468.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.1094, allocations: 132.1 kB / 469 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.1099, allocations: 78.75 kB / 469.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.1154, allocations: 4.03 MB / 473.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.1158, allocations: 0.8276 MB / 473.9 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.1159, allocations: 46.92 kB / 474 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000213/0.1162, allocations: 139.5 kB / 474.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1162, allocations: 0 / 474.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.1451, allocations: 8.576 MB / 482.7 MB, free: 7.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.46, allocations: 7.922 kB / 482.7 MB, free: 7.242 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.016 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)