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.001239/0.001239, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.001113/0.001114, allocations: 187.3 kB / 17.85 MB, free: 5.176 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.317/1.317, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2458/0.2458, 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.001454/0.001454, allocations: 68.5 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.08097, allocations: 59.15 MB / 449.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004311/0.08531, allocations: 3.137 MB / 452.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.08692, allocations: 0.8304 MB / 453.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.08722, allocations: 8 kB / 453.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.08745, allocations: 59.31 kB / 453.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004064/0.08787, allocations: 154.7 kB / 453.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.08817, allocations: 123.8 kB / 453.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005285/0.08871, allocations: 0.5101 MB / 454.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.08898, allocations: 149.7 kB / 454.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.08925, allocations: 203.1 kB / 454.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002733/0.08953, allocations: 222.9 kB / 454.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.176e-05/0.0896, allocations: 36 kB / 454.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.917e-05/0.08971, allocations: 40 kB / 454.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.88e-05/0.08979, allocations: 95.55 kB / 454.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.08999, allocations: 238.7 kB / 455.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.0904, allocations: 426.3 kB / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09041, allocations: 0 / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.09042, allocations: 0 / 455.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.09044, 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.001371/0.09181, allocations: 0.7866 MB / 456.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.09186, allocations: 15.89 kB / 456.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.337e-05/0.09194, allocations: 66.72 kB / 456.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.09209, allocations: 56.28 kB / 456.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.09253, allocations: 366 kB / 456.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.09257, allocations: 25.03 kB / 456.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.679e-05/0.09264, allocations: 44.3 kB / 456.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005269/0.09317, allocations: 314 kB / 457.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.0932, allocations: 7.844 kB / 457.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.09324, allocations: 16 kB / 457.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.09326, allocations: 8 kB / 457.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004162/0.09368, allocations: 218.4 kB / 457.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.09547, allocations: 1.171 MB / 458.6 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.09598, allocations: 259.6 kB / 458.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.09621, allocations: 125.4 kB / 459 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.09625, allocations: 4.281 kB / 459 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.09628, allocations: 38.84 kB / 459 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.573e-06/0.09629, allocations: 4 kB / 459 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002225/0.09852, allocations: 1.072 MB / 460.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.09857, allocations: 55.41 kB / 460.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004069/0.09898, allocations: 389.5 kB / 460.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.09902, allocations: 33.7 kB / 460.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.09918, allocations: 220.6 kB / 460.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.575e-05/0.09928, allocations: 130.1 kB / 460.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.0994, allocations: 74.05 kB / 461 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.09954, allocations: 354.8 kB / 461.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.09975, allocations: 92.83 kB / 461.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.09997, allocations: 144.6 kB / 461.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.1004, allocations: 252 kB / 461.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1004, allocations: 4 kB / 461.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000581/0.101, allocations: 344.8 kB / 462.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.101, allocations: 8.125 kB / 462.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.101, allocations: 0 / 462.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1011, allocations: 4 kB / 462.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007374/0.1018, allocations: 143.8 kB / 462.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.103, allocations: 1.445 MB / 463.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.1033, allocations: 16.05 kB / 463.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.1033, 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.000159/0.1035, allocations: 153.6 kB / 463.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/0.1035, allocations: 43.47 kB / 464 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005202/0.1041, allocations: 321.9 kB / 464.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1041, allocations: 7.938 kB / 464.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1041, allocations: 11.94 kB / 464.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1041, allocations: 3.938 kB / 464.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.1052, allocations: 0.7791 MB / 465.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1052, allocations: 3.984 kB / 465.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.1056, allocations: 75.91 kB / 465.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.1056, allocations: 4 kB / 465.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.1056, allocations: 8 kB / 465.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.1057, allocations: 11.98 kB / 465.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1057, allocations: 0 / 465.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007238/0.1064, allocations: 0.5076 MB / 465.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.1066, allocations: 140.5 kB / 465.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.1066, allocations: 7.984 kB / 465.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.1069, allocations: 8 kB / 465.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.1069, allocations: 23.97 kB / 465.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.1069, allocations: 15.98 kB / 465.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002712/0.1072, allocations: 267.2 kB / 466.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1072, allocations: 0 / 466.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003661/0.1076, allocations: 91.94 kB / 466.2 MB, free: 8.113 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.0009485/0.1086, allocations: 1.056 MB / 467.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007802/0.1093, allocations: 296 kB / 467.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1094, allocations: 0 / 467.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.1096, allocations: 135.7 kB / 467.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.1101, allocations: 88.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.005317/0.1154, allocations: 4.051 MB / 471.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.1158, allocations: 0.8235 MB / 472.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.116, 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.0002222/0.1162, allocations: 155.4 kB / 472.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1162, allocations: 0 / 472.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.1433, allocations: 8.437 MB / 481.3 MB, free: 8.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.65/9.793, allocations: 4 kB / 481.3 MB, free: 8.809 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)