Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001877/0.001878, allocations: 172.6 kB / 8.343 MB, free: 0.7422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.3 MB / 214.1 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009118/0.0009121, allocations: 86.7 kB / 262.1 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2713/0.2713, allocations: 48.78 MB / 358.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.072e-05/1.074e-05, allocations: 0 / 425.3 MB, free: 22.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 60.25 MB / 485.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3621/0.4643, allocations: 85.81 MB / 0.558 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4645, allocations: 71.16 kB / 0.558 GB, free: 11.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01028/0.4748, allocations: 3.619 MB / 0.5616 GB, free: 8.688 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.041e-06/0.4748, allocations: 0 / 0.5616 GB, free: 8.688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.4749, allocations: 11.94 kB / 0.5616 GB, free: 8.676 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006251/0.4755, allocations: 467.7 kB / 0.562 GB, free: 8.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.4756, allocations: 12.03 kB / 0.562 GB, free: 8.176 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.011e-05/0.4756, allocations: 28.11 kB / 0.5621 GB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003897/0.476, allocations: 267.7 kB / 0.5623 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.4761, allocations: 7.938 kB / 0.5623 GB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.4761, allocations: 11.91 kB / 0.5623 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001688/0.4763, allocations: 72.8 kB / 0.5624 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.4765, allocations: 120.7 kB / 0.5625 GB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4765, allocations: 0 / 0.5625 GB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.4765, allocations: 4 kB / 0.5625 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.4766, allocations: 3.953 kB / 0.5625 GB, free: 7.688 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008674/0.4774, allocations: 0.5642 MB / 0.5631 GB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.4776, allocations: 117.2 kB / 0.5632 GB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.383e-05/0.4778, allocations: 58.11 kB / 0.5632 GB, free: 7.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.4778, allocations: 3.984 kB / 0.5632 GB, free: 7.016 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.4778, allocations: 34.56 kB / 0.5633 GB, free: 6.973 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.4778, allocations: 0 / 0.5633 GB, free: 6.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008874/0.4787, allocations: 463.4 kB / 0.5637 GB, free: 6.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.4788, allocations: 55.41 kB / 0.5638 GB, free: 6.457 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.4789, allocations: 195.1 kB / 0.564 GB, free: 6.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.479, allocations: 25.7 kB / 0.564 GB, free: 6.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.4791, allocations: 134.1 kB / 0.5641 GB, free: 6.156 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.235e-05/0.4791, allocations: 74.06 kB / 0.5642 GB, free: 6.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-06/0.4791, allocations: 0 / 0.5642 GB, free: 6.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.4793, allocations: 332.5 kB / 0.5645 GB, free: 5.766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.21e-05/0.4793, allocations: 40.62 kB / 0.5645 GB, free: 5.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.015e-05/0.4794, allocations: 66.08 kB / 0.5646 GB, free: 5.688 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.0008002/0.4802, allocations: 264.4 kB / 0.5649 GB, free: 5.453 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4802, allocations: 0 / 0.5649 GB, free: 5.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002649/0.4805, allocations: 164.8 kB / 0.565 GB, free: 5.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.4805, allocations: 8 kB / 0.565 GB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4805, allocations: 3.953 kB / 0.565 GB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.4806, allocations: 0 / 0.565 GB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.4809, allocations: 67.06 kB / 0.5651 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4809, allocations: 3.938 kB / 0.5651 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.481, allocations: 15.92 kB / 0.5651 GB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.481, allocations: 7.875 kB / 0.5651 GB, free: 5.215 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.generator.theta = generator.omega_e_nom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 prepare postOptimizeDAE: time 9.955e-05/0.4812, allocations: 105.3 kB / 0.5652 GB, free: 5.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.601e-05/0.4812, allocations: 19.72 kB / 0.5652 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.4815, allocations: 163.8 kB / 0.5654 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.4815, allocations: 4 kB / 0.5654 GB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4815, allocations: 0 / 0.5654 GB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4815, allocations: 3.953 kB / 0.5654 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006082/0.4821, allocations: 484 kB / 0.5659 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4822, allocations: 0 / 0.5659 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/0.4825, allocations: 59.95 kB / 0.5659 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.4825, allocations: 0 / 0.5659 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.4825, allocations: 4 kB / 0.5659 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.4825, allocations: 4 kB / 0.5659 GB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4825, allocations: 3.953 kB / 0.5659 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.4829, allocations: 303 kB / 0.5662 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.555e-05/0.483, allocations: 103.7 kB / 0.5663 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.4831, allocations: 0 / 0.5663 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.4832, allocations: 11.98 kB / 0.5663 GB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.259e-05/0.4833, allocations: 15.94 kB / 0.5663 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.4833, allocations: 7.062 kB / 0.5664 GB, free: 4.027 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001577/0.4835, allocations: 153.7 kB / 0.5665 GB, free: 3.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4835, allocations: 0 / 0.5665 GB, free: 3.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002963/0.4838, allocations: 44 kB / 0.5665 GB, free: 3.855 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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 0.0001684/0.4839, allocations: 104.2 kB / 0.5666 GB, free: 3.746 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002305/0.4842, allocations: 112 kB / 0.5667 GB, free: 3.672 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4842, allocations: 8 kB / 0.5668 GB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.648e-05/0.4843, allocations: 53.94 kB / 0.5668 GB, free: 3.625 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.4846, allocations: 39.11 kB / 0.5668 GB, free: 3.598 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008526/0.4854, allocations: 436.9 kB / 0.5673 GB, free: 3.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.4858, allocations: 0.7555 MB / 0.568 GB, free: 2.391 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00012/0.486, allocations: 22.06 kB / 0.568 GB, free: 2.371 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.486, allocations: 19.44 kB / 0.568 GB, free: 2.352 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.486, allocations: 0 / 0.568 GB, free: 2.352 MB / 378.7 MB Notification: Performance of Templates: time 0.004855/0.4909, allocations: 1.767 MB / 0.5698 GB, free: 0.5977 MB / 378.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)