Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001741/0.00174, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008282/0.0008282, allocations: 89.62 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3648/0.3648, allocations: 48.78 MB / 367.9 MB, free: 47.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002884, allocations: 8 kB / 438.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 60.25 MB / 498.9 MB, free: 14.6 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3922, allocations: 86.32 MB / 0.5715 GB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3925, allocations: 75.95 kB / 0.5716 GB, free: 12.26 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007637/0.4001, allocations: 3.093 MB / 0.5746 GB, free: 9.211 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4001, allocations: 0 / 0.5746 GB, free: 9.211 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.4002, allocations: 4 kB / 0.5746 GB, free: 9.207 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005262/0.4007, allocations: 474.4 kB / 0.575 GB, free: 8.699 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.4007, allocations: 8.031 kB / 0.575 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.4008, allocations: 23.72 kB / 0.5751 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.4011, allocations: 252.5 kB / 0.5753 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.4011, allocations: 16 kB / 0.5753 GB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.4012, allocations: 14.19 kB / 0.5753 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.4014, allocations: 131.5 kB / 0.5755 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.4014, allocations: 0 / 0.5755 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.4014, allocations: 8 kB / 0.5755 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.4014, allocations: 0 / 0.5755 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.4016, allocations: 87.91 kB / 0.5755 GB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005837/0.4022, allocations: 0.5487 MB / 0.5761 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/0.4023, allocations: 102.5 kB / 0.5762 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.4024, allocations: 4 kB / 0.5762 GB, free: 7.406 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.4024, allocations: 34.56 kB / 0.5762 GB, free: 7.363 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.705e-06/0.4024, allocations: 0 / 0.5762 GB, free: 7.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007032/0.4031, allocations: 473 kB / 0.5767 GB, free: 6.852 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.4032, allocations: 55.34 kB / 0.5767 GB, free: 6.785 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.4033, allocations: 190.3 kB / 0.5769 GB, free: 6.594 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.4033, allocations: 25.7 kB / 0.5769 GB, free: 6.562 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.615e-05/0.4034, allocations: 131.9 kB / 0.5771 GB, free: 6.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.4034, allocations: 47.34 kB / 0.5771 GB, free: 6.383 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.4034, allocations: 4.656 kB / 0.5771 GB, free: 6.379 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.4035, allocations: 330.8 kB / 0.5774 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-05/0.4036, allocations: 35.98 kB / 0.5775 GB, free: 6.012 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.483e-05/0.4036, allocations: 62.48 kB / 0.5775 GB, free: 5.941 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.022e-05/0.4037, allocations: 40 kB / 0.5776 GB, free: 5.902 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4037, allocations: 4 kB / 0.5776 GB, free: 5.898 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002182/0.404, allocations: 157.3 kB / 0.5777 GB, free: 5.738 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.404, allocations: 8.188 kB / 0.5777 GB, free: 5.734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.404, allocations: 0 / 0.5777 GB, free: 5.734 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.404, allocations: 4.062 kB / 0.5777 GB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.4042, allocations: 35.98 kB / 0.5778 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4042, allocations: 7.938 kB / 0.5778 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.4043, allocations: 9.547 kB / 0.5778 GB, free: 5.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.4043, allocations: 8 kB / 0.5778 GB, free: 5.672 MB / 394.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 7.332e-05/0.4044, allocations: 125.8 kB / 0.5779 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.733e-05/0.4044, allocations: 19.81 kB / 0.5779 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002417/0.4047, allocations: 151.1 kB / 0.5781 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4047, allocations: 0 / 0.5781 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4047, allocations: 0 / 0.5781 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.4047, allocations: 3.984 kB / 0.5781 GB, free: 5.367 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.4052, allocations: 467 kB / 0.5785 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4052, allocations: 4 kB / 0.5785 GB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.4054, allocations: 35.92 kB / 0.5785 GB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4054, allocations: 0 / 0.5785 GB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.4054, allocations: 6.875 kB / 0.5786 GB, free: 4.816 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4054, allocations: 4 kB / 0.5786 GB, free: 4.812 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4054, allocations: 0 / 0.5786 GB, free: 4.812 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.4057, allocations: 290.4 kB / 0.5788 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.4058, allocations: 104.9 kB / 0.5789 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.4058, allocations: 0 / 0.5789 GB, free: 4.395 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.4059, allocations: 11.94 kB / 0.5789 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.406, allocations: 7.984 kB / 0.579 GB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.406, allocations: 4 kB / 0.579 GB, free: 4.371 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.717e-05/0.4061, allocations: 151.9 kB / 0.5791 GB, free: 4.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4061, allocations: 0 / 0.5791 GB, free: 4.223 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002512/0.4064, allocations: 43.94 kB / 0.5791 GB, free: 4.18 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001045/0.4065, allocations: 111.2 kB / 0.5793 GB, free: 4.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.4067, allocations: 99.89 kB / 0.5793 GB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.4067, allocations: 0 / 0.5793 GB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.006e-05/0.4068, allocations: 53.92 kB / 0.5794 GB, free: 3.914 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.4071, allocations: 36.77 kB / 0.5794 GB, free: 3.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007931/0.4079, allocations: 0.6197 MB / 0.58 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.408, allocations: 0.7361 MB / 0.5808 GB, free: 2.484 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.62e-05/0.4081, allocations: 25.02 kB / 0.5808 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.4082, allocations: 19.44 kB / 0.5808 GB, free: 2.441 MB / 394.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4082, allocations: 0 / 0.5808 GB, free: 2.441 MB / 394.7 MB Notification: Performance of Templates: time 0.003666/0.4118, allocations: 1.498 MB / 0.5823 GB, free: 0.9805 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)