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.0009147/0.0009148, allocations: 92.09 kB / 16.3 MB, free: 5.996 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.0009215/0.0009213, allocations: 183.4 kB / 17.2 MB, free: 5.906 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.304/1.304, allocations: 205.4 MB / 223.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3614/0.3614, allocations: 48.77 MB / 320.4 MB, free: 3.809 MB / 254.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.0004928/0.0004929, allocations: 12 kB / 391.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.09914, allocations: 60.26 MB / 451.4 MB, free: 1.922 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.1617/0.2608, allocations: 2.498 MB / 453.9 MB, free: 47.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.2622, allocations: 0.8381 MB / 454.7 MB, free: 47.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.2624, allocations: 12.5 kB / 454.7 MB, free: 47.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.61e-05/0.2625, allocations: 36.09 kB / 454.8 MB, free: 47.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003428/0.2628, allocations: 163.9 kB / 454.9 MB, free: 47.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.263, allocations: 83.72 kB / 455 MB, free: 47.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.2634, allocations: 328.1 kB / 455.3 MB, free: 47.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.2636, allocations: 106.7 kB / 455.4 MB, free: 47.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2638, allocations: 165.2 kB / 455.6 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.2639, allocations: 177.9 kB / 455.8 MB, free: 47.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.264, allocations: 21.31 kB / 455.8 MB, free: 47.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.2641, allocations: 19.62 kB / 455.8 MB, free: 47.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.2641, allocations: 65.45 kB / 455.9 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.2642, allocations: 94.92 kB / 456 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.2644, allocations: 284.5 kB / 456.3 MB, free: 47.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.2644, allocations: 0 / 456.3 MB, free: 47.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2644, allocations: 6.75 kB / 456.3 MB, free: 47.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2644, allocations: 0 / 456.3 MB, free: 47.2 MB / 382.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.0009358/0.2654, allocations: 0.6854 MB / 456.9 MB, free: 46.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.2654, allocations: 9.406 kB / 457 MB, free: 46.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2655, allocations: 51.09 kB / 457 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.2659, allocations: 335.4 kB / 457.3 MB, free: 46.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2659, allocations: 25.16 kB / 457.4 MB, free: 46.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.2659, allocations: 38.47 kB / 457.4 MB, free: 46.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.2663, allocations: 293.6 kB / 457.7 MB, free: 46.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2664, allocations: 5.578 kB / 457.7 MB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.2664, allocations: 13.75 kB / 457.7 MB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.2664, allocations: 9.312 kB / 457.7 MB, free: 46.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.2668, allocations: 205 kB / 457.9 MB, free: 46.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2681, allocations: 1.12 MB / 459 MB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.2685, allocations: 242.3 kB / 459.3 MB, free: 45.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.2685, allocations: 13.16 kB / 459.3 MB, free: 45.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.2685, allocations: 37.03 kB / 459.3 MB, free: 45.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.2685, allocations: 0.75 kB / 459.3 MB, free: 45.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001434/0.27, allocations: 0.9402 MB / 460.3 MB, free: 45.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.27, allocations: 58 kB / 460.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.2703, allocations: 356.7 kB / 460.7 MB, free: 45.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.2703, allocations: 30.89 kB / 460.7 MB, free: 45.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.2704, allocations: 214 kB / 460.9 MB, free: 44.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.569e-05/0.2705, allocations: 117.2 kB / 461 MB, free: 44.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.279e-05/0.2705, allocations: 7.562 kB / 461 MB, free: 44.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.356e-05/0.2706, allocations: 349.7 kB / 461.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.2707, allocations: 89.28 kB / 461.4 MB, free: 44.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.2709, allocations: 140.5 kB / 461.6 MB, free: 44.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.271, allocations: 95.19 kB / 461.7 MB, free: 44.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2711, allocations: 0 / 461.7 MB, free: 44.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008343/0.2719, allocations: 427.6 kB / 462.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2719, allocations: 5.781 kB / 462.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2719, allocations: 3.953 kB / 462.1 MB, free: 44.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005553/0.2725, allocations: 125.8 kB / 462.2 MB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/0.2729, allocations: 98.47 kB / 462.3 MB, free: 44.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.2753, allocations: 3.132 MB / 465.5 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.2756, allocations: 17.67 kB / 465.5 MB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.2756, allocations: 12.66 kB / 465.5 MB, free: 41.47 MB / 382.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.2757, allocations: 153.8 kB / 465.6 MB, free: 41.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/0.2758, allocations: 43.67 kB / 465.7 MB, free: 41.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/0.2762, allocations: 296.7 kB / 466 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.2762, allocations: 13 kB / 466 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.2762, allocations: 0 / 466 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2763, allocations: 3.141 kB / 466 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000801/0.2771, allocations: 0.7578 MB / 466.7 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2771, allocations: 3.469 kB / 466.7 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.2774, allocations: 75.94 kB / 466.8 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2775, allocations: 0 / 466.8 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.2775, allocations: 10.47 kB / 466.8 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2775, allocations: 0 / 466.8 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2775, allocations: 0 / 466.8 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.278, allocations: 0.5007 MB / 467.3 MB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.2782, allocations: 135.1 kB / 467.5 MB, free: 40.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.2782, allocations: 7.312 kB / 467.5 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.2784, allocations: 10.69 kB / 467.5 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.05e-05/0.2785, allocations: 20.8 kB / 467.5 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.2785, allocations: 11.41 kB / 467.5 MB, free: 40.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001987/0.2787, allocations: 249.2 kB / 467.8 MB, free: 40.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2787, allocations: 0 / 467.8 MB, free: 40.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.2791, allocations: 93.34 kB / 467.8 MB, free: 40.11 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.02e-05/0.2792, allocations: 98.12 kB / 467.9 MB, free: 40.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007757/0.28, allocations: 436.3 kB / 468.4 MB, free: 39.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.28, allocations: 0 / 468.4 MB, free: 39.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.2802, allocations: 137.6 kB / 468.5 MB, free: 39.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.2805, allocations: 74.94 kB / 468.6 MB, free: 39.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.2821, allocations: 1.295 MB / 469.9 MB, free: 38.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.2823, allocations: 0.8284 MB / 470.7 MB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.2825, allocations: 42.86 kB / 470.7 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.354e-05/0.2826, allocations: 31.95 kB / 470.8 MB, free: 38.19 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2826, allocations: 0 / 470.8 MB, free: 38.19 MB / 382.1 MB Notification: Performance of Templates: time 0.007799/0.2904, allocations: 4.048 MB / 474.8 MB, free: 37.92 MB / 382.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: