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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007509/0.000751, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.0007902/0.0007903, allocations: 180.4 kB / 17.57 MB, free: 5.844 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.315/1.315, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2632/0.2632, allocations: 48.78 MB / 320.8 MB, free: 11.2 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.0005024/0.0005023, allocations: 12.98 kB / 391.8 MB, free: 49.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08468, allocations: 60.26 MB / 452.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.00311/0.08784, allocations: 2.784 MB / 454.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.0894, allocations: 0.8345 MB / 455.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.0897, allocations: 4 kB / 455.7 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.08988, allocations: 39.64 kB / 455.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.09029, allocations: 123 kB / 455.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002432/0.09055, allocations: 95.89 kB / 455.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.09107, allocations: 470.2 kB / 456.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.0913, allocations: 116.1 kB / 456.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.09156, allocations: 171.2 kB / 456.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.09178, allocations: 183 kB / 456.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.09183, allocations: 20 kB / 456.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.0919, allocations: 16 kB / 456.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.736e-05/0.09197, allocations: 71.56 kB / 457 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.09213, allocations: 220.5 kB / 457.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.09246, allocations: 386.3 kB / 457.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09247, allocations: 0 / 457.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09248, allocations: 0 / 457.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.09249, allocations: 0 / 457.6 MB, free: 3.66 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.001042/0.09354, allocations: 0.6739 MB / 458.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.09358, allocations: 15.97 kB / 458.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.0937, allocations: 48.38 kB / 458.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.09408, allocations: 354 kB / 458.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.09411, allocations: 21.03 kB / 458.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.09418, allocations: 40.38 kB / 458.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.09465, allocations: 301.6 kB / 459 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.09468, allocations: 11.89 kB / 459 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.09471, allocations: 8 kB / 459 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.09472, allocations: 8 kB / 459 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003788/0.0951, allocations: 214 kB / 459.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.09665, allocations: 1.12 MB / 460.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.09703, allocations: 249.1 kB / 460.6 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.09723, allocations: 120.8 kB / 460.7 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.09726, allocations: 4 kB / 460.7 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.09729, allocations: 42.56 kB / 460.8 MB, free: 276 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.0973, allocations: 0 / 460.8 MB, free: 276 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001715/0.09902, allocations: 0.945 MB / 461.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.09907, allocations: 59.39 kB / 461.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/0.09942, allocations: 353.7 kB / 462.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.09946, allocations: 33.7 kB / 462.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.09959, allocations: 204.4 kB / 462.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.342e-05/0.09969, allocations: 122.2 kB / 462.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.09974, allocations: 41.69 kB / 462.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.09987, allocations: 350.7 kB / 462.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.1001, allocations: 92.7 kB / 462.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.1002, allocations: 133.7 kB / 463.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.1006, allocations: 248 kB / 463.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1006, allocations: 3.938 kB / 463.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009135/0.1016, allocations: 421.2 kB / 463.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1016, allocations: 7.938 kB / 463.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1016, allocations: 4.125 kB / 463.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005993/0.1022, allocations: 120.7 kB / 463.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.1026, allocations: 91.88 kB / 463.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.1056, allocations: 3.119 MB / 467.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.1059, allocations: 12 kB / 467.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.1059, allocations: 16.06 kB / 467.1 MB, free: 9.504 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.0001556/0.1061, allocations: 153.7 kB / 467.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.1061, allocations: 47.47 kB / 467.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004971/0.1066, allocations: 305.9 kB / 467.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1066, allocations: 4 kB / 467.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.1067, allocations: 4 kB / 467.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1067, allocations: 0 / 467.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009797/0.1076, allocations: 0.748 MB / 468.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1077, allocations: 0 / 468.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.1081, allocations: 80.17 kB / 468.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1081, allocations: 4 kB / 468.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.1081, allocations: 8 kB / 468.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1081, allocations: 7.938 kB / 468.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1081, allocations: 3.984 kB / 468.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006491/0.1088, allocations: 0.4995 MB / 468.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1089, allocations: 132.6 kB / 469.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.109, allocations: 4 kB / 469.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.1092, allocations: 19.98 kB / 469.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.1092, allocations: 27.84 kB / 469.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1093, allocations: 12 kB / 469.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.1095, allocations: 251.2 kB / 469.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1095, allocations: 0 / 469.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.1099, allocations: 92 kB / 469.5 MB, free: 7.02 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.0001023/0.11, allocations: 111.1 kB / 469.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008759/0.1109, allocations: 450 kB / 470 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1109, allocations: 4 kB / 470 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.1111, allocations: 123.9 kB / 470.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.1117, allocations: 72.8 kB / 470.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.1134, allocations: 1.33 MB / 471.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1138, allocations: 0.8159 MB / 472.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001514/0.114, allocations: 42.94 kB / 472.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.1141, allocations: 35.42 kB / 472.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1141, allocations: 0 / 472.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of Templates: time 0.008071/0.1222, allocations: 4.189 MB / 476.6 MB, free: 15.79 MB / 366.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile Environment - environmentSimulation: (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1) Environment - environmentSimulation: