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.001498/0.001498, allocations: 102.8 kB / 16.92 MB, free: 5.801 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.00171/0.00171, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.343/1.343, 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.2742/0.2742, allocations: 48.84 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.00147/0.00147, allocations: 72.2 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08207/0.08355, allocations: 59.15 MB / 449.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004039/0.08762, allocations: 2.953 MB / 452.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.0891, allocations: 0.815 MB / 453.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.08936, allocations: 11.94 kB / 453.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.08956, allocations: 47.39 kB / 453.2 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.09001, allocations: 150.8 kB / 453.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.09029, allocations: 111.8 kB / 453.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.09081, allocations: 486.4 kB / 453.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.09106, allocations: 136.3 kB / 454 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.09132, allocations: 195.2 kB / 454.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.09161, allocations: 207 kB / 454.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.09167, allocations: 35.94 kB / 454.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.09178, allocations: 36 kB / 454.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.09186, allocations: 87.62 kB / 454.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.09205, allocations: 214.7 kB / 454.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.09245, allocations: 394.5 kB / 455.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.09246, allocations: 0 / 455.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09247, allocations: 0 / 455.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.09248, allocations: 4 kB / 455.2 MB, free: 3.816 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.001249/0.09374, allocations: 0.7555 MB / 455.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.09378, allocations: 8.031 kB / 455.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.655e-05/0.09385, allocations: 74.66 kB / 456 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.09398, allocations: 48.38 kB / 456.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.09439, allocations: 346.2 kB / 456.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.09442, allocations: 21.03 kB / 456.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.09449, allocations: 47.97 kB / 456.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.09497, allocations: 297.7 kB / 456.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.09499, allocations: 4 kB / 456.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.09503, allocations: 12 kB / 456.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.09505, allocations: 11.94 kB / 456.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003768/0.09543, allocations: 202.1 kB / 457 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.09705, allocations: 1.124 MB / 458.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.09744, allocations: 238.9 kB / 458.3 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.09765, allocations: 116.8 kB / 458.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.09769, allocations: 8 kB / 458.5 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.09772, allocations: 38.56 kB / 458.5 MB, free: 292 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.533e-06/0.09773, allocations: 0 / 458.5 MB, free: 292 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001739/0.09947, allocations: 0.9256 MB / 459.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.09951, allocations: 55.41 kB / 459.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.09988, allocations: 357.6 kB / 459.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.09991, allocations: 33.7 kB / 459.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1001, allocations: 216.3 kB / 460.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.175e-05/0.1001, allocations: 118.2 kB / 460.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.342e-05/0.1002, allocations: 74.06 kB / 460.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1004, allocations: 350.7 kB / 460.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.1006, allocations: 88.7 kB / 460.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.1008, allocations: 129.7 kB / 460.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/0.1011, allocations: 248 kB / 461 MB, free: 13.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1012, allocations: 0 / 461 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009368/0.1021, allocations: 421 kB / 461.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1021, allocations: 4 kB / 461.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1021, allocations: 4 kB / 461.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005745/0.1027, allocations: 120.9 kB / 461.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004229/0.1032, allocations: 95.88 kB / 461.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003123/0.1063, allocations: 3.344 MB / 465 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.1065, allocations: 11.94 kB / 465 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.1066, allocations: 12 kB / 465 MB, free: 9.285 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.0001545/0.1067, allocations: 153.7 kB / 465.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.179e-05/0.1068, allocations: 47.42 kB / 465.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004989/0.1073, allocations: 306 kB / 465.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.511e-05/0.1073, allocations: 4 kB / 465.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1073, allocations: 3.938 kB / 465.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1074, allocations: 0 / 465.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.1084, allocations: 0.7483 MB / 466.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1084, allocations: 0 / 466.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003938/0.1088, allocations: 79.95 kB / 466.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1088, allocations: 7.875 kB / 466.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.1089, allocations: 8 kB / 466.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1089, allocations: 4 kB / 466.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1089, allocations: 0 / 466.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006842/0.1096, allocations: 498.7 kB / 466.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.1097, allocations: 128.6 kB / 467 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/0.1098, allocations: 16 kB / 467 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.11, allocations: 11.98 kB / 467 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.1101, allocations: 11.98 kB / 467 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.1101, allocations: 15.98 kB / 467.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.1104, allocations: 251.2 kB / 467.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1104, allocations: 0 / 467.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.1107, allocations: 88 kB / 467.4 MB, free: 6.828 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.0008951/0.1116, allocations: 1.036 MB / 468.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009345/0.1126, allocations: 454.2 kB / 468.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1126, allocations: 0 / 468.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.1128, allocations: 128 kB / 469 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.1133, allocations: 76.17 kB / 469.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005463/0.1188, allocations: 4.04 MB / 473.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1191, allocations: 0.8198 MB / 473.9 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001672/0.1193, allocations: 46.94 kB / 474 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/0.1195, allocations: 139.5 kB / 474.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1195, allocations: 3.938 kB / 474.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03919/0.1587, allocations: 8.576 MB / 482.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.72, allocations: 7.922 kB / 482.7 MB, free: 7.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)