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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009103/0.0009103, allocations: 96.98 kB / 16.3 MB, free: 5.992 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.0009875/0.0009876, allocations: 184 kB / 17.2 MB, free: 5.914 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.305/1.305, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3535/0.3535, allocations: 48.78 MB / 320.4 MB, free: 3.812 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.0004721/0.0004721, allocations: 16 kB / 391.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09795, allocations: 60.26 MB / 451.4 MB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.1662/0.2642, allocations: 2.703 MB / 454.1 MB, free: 47.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.2655, allocations: 0.8687 MB / 455 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.2656, allocations: 9.906 kB / 455 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.918e-05/0.2657, allocations: 40.06 kB / 455 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.2661, allocations: 181.9 kB / 455.2 MB, free: 47.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.2663, allocations: 91.45 kB / 455.3 MB, free: 47.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.2667, allocations: 358.1 kB / 455.6 MB, free: 47.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.2669, allocations: 122 kB / 455.8 MB, free: 47.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.2671, allocations: 174.5 kB / 455.9 MB, free: 47.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.2673, allocations: 187.4 kB / 456.1 MB, free: 47.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.2673, allocations: 17.47 kB / 456.1 MB, free: 47.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.465e-05/0.2674, allocations: 19.41 kB / 456.1 MB, free: 47.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.926e-05/0.2674, allocations: 70.94 kB / 456.2 MB, free: 47.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.868e-05/0.2675, allocations: 104.7 kB / 456.3 MB, free: 47.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.2677, allocations: 305.7 kB / 456.6 MB, free: 47.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.2677, allocations: 4 kB / 456.6 MB, free: 47.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2678, allocations: 0 / 456.6 MB, free: 47.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.2678, allocations: 0 / 456.6 MB, free: 47.02 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001043/0.2688, allocations: 0.7206 MB / 457.3 MB, free: 46.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.2689, allocations: 12.39 kB / 457.3 MB, free: 46.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.269, allocations: 56 kB / 457.4 MB, free: 46.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.2693, allocations: 351.5 kB / 457.7 MB, free: 46.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2694, allocations: 26.72 kB / 457.8 MB, free: 46.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/0.2694, allocations: 45.28 kB / 457.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004248/0.2698, allocations: 308.1 kB / 458.1 MB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.2699, allocations: 2.75 kB / 458.1 MB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.2699, allocations: 17.52 kB / 458.1 MB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2699, allocations: 5.625 kB / 458.1 MB, free: 46.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.2703, allocations: 224.3 kB / 458.4 MB, free: 46.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.2718, allocations: 1.173 MB / 459.5 MB, free: 45.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.2722, allocations: 260.6 kB / 459.8 MB, free: 45.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.2722, allocations: 5.125 kB / 459.8 MB, free: 45.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.332e-05/0.2722, allocations: 37.53 kB / 459.8 MB, free: 45.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.482e-06/0.2723, allocations: 0 / 459.8 MB, free: 45.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001792/0.2741, allocations: 1.091 MB / 460.9 MB, free: 44.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.108e-05/0.2741, allocations: 69.14 kB / 461 MB, free: 44.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.2744, allocations: 379.3 kB / 461.4 MB, free: 44.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2745, allocations: 35.95 kB / 461.4 MB, free: 44.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.949e-05/0.2745, allocations: 217 kB / 461.6 MB, free: 44.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.2746, allocations: 133.7 kB / 461.7 MB, free: 44.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.406e-05/0.2746, allocations: 6.25 kB / 461.7 MB, free: 44.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.23e-05/0.2747, allocations: 356 kB / 462.1 MB, free: 44.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.2749, allocations: 90.06 kB / 462.2 MB, free: 44.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.2751, allocations: 146.5 kB / 462.3 MB, free: 44.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.2753, allocations: 108.3 kB / 462.4 MB, free: 44.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2753, allocations: 2.5 kB / 462.4 MB, free: 44.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004585/0.2758, allocations: 350.4 kB / 462.8 MB, free: 44.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2758, allocations: 5.719 kB / 462.8 MB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2758, allocations: 4.656 kB / 462.8 MB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2758, allocations: 2.812 kB / 462.8 MB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006805/0.2765, allocations: 151.6 kB / 462.9 MB, free: 44.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006876/0.2772, allocations: 1.351 MB / 464.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.2775, allocations: 14 kB / 464.3 MB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2775, allocations: 12.91 kB / 464.3 MB, free: 42.6 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 (48): * Single equations (assignments): 47 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001234/0.2776, allocations: 154.4 kB / 464.5 MB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.2777, allocations: 40.53 kB / 464.5 MB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.2781, allocations: 323.7 kB / 464.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2781, allocations: 5.75 kB / 464.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.2782, allocations: 0.5625 kB / 464.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2782, allocations: 3.469 kB / 464.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000854/0.279, allocations: 0.7865 MB / 465.6 MB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.279, allocations: 3.938 kB / 465.6 MB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.2794, allocations: 89.88 kB / 465.7 MB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2795, allocations: 0 / 465.7 MB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.2795, allocations: 10.05 kB / 465.7 MB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2795, allocations: 2.875 kB / 465.7 MB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2795, allocations: 0 / 465.7 MB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.2801, allocations: 0.5123 MB / 466.2 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.2802, allocations: 141.8 kB / 466.4 MB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.2802, allocations: 6.156 kB / 466.4 MB, free: 41.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.2805, allocations: 14.22 kB / 466.4 MB, free: 41.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.816e-05/0.2805, allocations: 27.11 kB / 466.4 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.2806, allocations: 7.969 kB / 466.4 MB, free: 41.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.2808, allocations: 266.5 kB / 466.7 MB, free: 41.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2808, allocations: 3.125 kB / 466.7 MB, free: 41.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003335/0.2811, allocations: 83.5 kB / 466.8 MB, free: 41.2 MB / 382.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 (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 7.754e-05/0.2812, allocations: 106.8 kB / 466.9 MB, free: 41.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006088/0.2818, allocations: 284.9 kB / 467.2 MB, free: 41.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2818, allocations: 0 / 467.2 MB, free: 41.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.282, allocations: 142.7 kB / 467.3 MB, free: 40.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.2824, allocations: 63.36 kB / 467.4 MB, free: 40.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.284, allocations: 1.355 MB / 468.7 MB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.2843, allocations: 0.8388 MB / 469.5 MB, free: 39.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.2844, allocations: 49.83 kB / 469.6 MB, free: 39.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.82e-05/0.2845, allocations: 28.69 kB / 469.6 MB, free: 39.39 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2845, allocations: 3.125 kB / 469.6 MB, free: 39.39 MB / 382.1 MB Notification: Performance of Templates: time 0.007718/0.2923, allocations: 3.809 MB / 473.4 MB, free: 39.12 MB / 382.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile Environment - environmentSimulation: (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) Environment - environmentSimulation: