Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000904/0.0009041, allocations: 180.8 kB / 8.346 MB, free: 0.7148 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.486/1.486, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007582/0.0007581, allocations: 92.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5168/0.5168, allocations: 48.77 MB / 358.8 MB, free: 53.17 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.468e-05/1.491e-05, allocations: 0 / 425.3 MB, free: 8.234 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1274, allocations: 60.24 MB / 485.5 MB, free: 11.84 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4911, allocations: 85.96 MB / 0.5581 GB, free: 15.2 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.4913, allocations: 67.97 kB / 0.5582 GB, free: 15.13 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.5028, allocations: 3.943 MB / 0.562 GB, free: 11.23 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5028, allocations: 0 / 0.562 GB, free: 11.23 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.724e-05/0.5028, allocations: 4 kB / 0.562 GB, free: 11.23 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0007555/0.5036, allocations: 485.2 kB / 0.5625 GB, free: 10.71 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.5037, allocations: 9.016 kB / 0.5625 GB, free: 10.71 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.486e-05/0.5038, allocations: 35.62 kB / 0.5625 GB, free: 10.67 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.5042, allocations: 257.7 kB / 0.5628 GB, free: 10.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.5042, allocations: 4 kB / 0.5628 GB, free: 10.38 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.838e-05/0.5043, allocations: 15.98 kB / 0.5628 GB, free: 10.36 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002055/0.5045, allocations: 86.89 kB / 0.5629 GB, free: 10.28 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.5048, allocations: 149.5 kB / 0.563 GB, free: 10.12 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.5048, allocations: 0 / 0.563 GB, free: 10.12 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.5048, allocations: 4.75 kB / 0.563 GB, free: 10.12 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.5049, allocations: 7.953 kB / 0.563 GB, free: 10.11 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.506, allocations: 0.6001 MB / 0.5636 GB, free: 9.465 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.5062, allocations: 130.5 kB / 0.5637 GB, free: 9.328 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.5064, allocations: 62.08 kB / 0.5638 GB, free: 9.266 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.5064, allocations: 0 / 0.5638 GB, free: 9.266 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.5064, allocations: 34.56 kB / 0.5638 GB, free: 9.223 MB / 395.1 MB Notification: Performance of pre-optimization done (n=18): time 2.956e-06/0.5065, allocations: 4 kB / 0.5638 GB, free: 9.219 MB / 395.1 MB Notification: Performance of matching and sorting (n=19): time 0.001045/0.5075, allocations: 459.8 kB / 0.5643 GB, free: 8.715 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.5076, allocations: 55.41 kB / 0.5643 GB, free: 8.648 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.5078, allocations: 192.5 kB / 0.5645 GB, free: 8.457 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.5079, allocations: 29.7 kB / 0.5645 GB, free: 8.422 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.508, allocations: 144.3 kB / 0.5647 GB, free: 8.277 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.335e-05/0.5081, allocations: 67 kB / 0.5647 GB, free: 8.211 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.868e-06/0.5081, allocations: 4 kB / 0.5647 GB, free: 8.207 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.5083, allocations: 335.4 kB / 0.5651 GB, free: 7.871 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-05/0.5084, allocations: 36 kB / 0.5651 GB, free: 7.836 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.5085, allocations: 57.7 kB / 0.5652 GB, free: 7.773 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.5087, allocations: 51.92 kB / 0.5652 GB, free: 7.723 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.5087, allocations: 3.953 kB / 0.5652 GB, free: 7.719 MB / 395.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003471/0.5091, allocations: 160.2 kB / 0.5654 GB, free: 7.559 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.5091, allocations: 10.75 kB / 0.5654 GB, free: 7.551 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5091, allocations: 0 / 0.5654 GB, free: 7.551 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.5092, allocations: 4 kB / 0.5654 GB, free: 7.547 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/0.5096, allocations: 71.89 kB / 0.5654 GB, free: 7.477 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.5109, allocations: 1.293 MB / 0.5667 GB, free: 6.066 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.5111, allocations: 8.016 kB / 0.5667 GB, free: 6.059 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.5111, allocations: 9.734 kB / 0.5667 GB, free: 6.051 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * 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): 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.0001192/0.5112, allocations: 120.3 kB / 0.5668 GB, free: 5.93 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.5113, allocations: 19.77 kB / 0.5669 GB, free: 5.91 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003519/0.5116, allocations: 163.1 kB / 0.567 GB, free: 5.75 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.5117, allocations: 0 / 0.567 GB, free: 5.75 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5117, allocations: 4.5 kB / 0.567 GB, free: 5.746 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.5117, allocations: 0 / 0.567 GB, free: 5.746 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007656/0.5125, allocations: 494.8 kB / 0.5675 GB, free: 5.219 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.5125, allocations: 0 / 0.5675 GB, free: 5.219 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.5129, allocations: 53.41 kB / 0.5675 GB, free: 5.168 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.5129, allocations: 0 / 0.5675 GB, free: 5.168 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.513, allocations: 0 / 0.5675 GB, free: 5.168 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.513, allocations: 0 / 0.5675 GB, free: 5.168 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.513, allocations: 0 / 0.5675 GB, free: 5.168 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.5136, allocations: 320.3 kB / 0.5678 GB, free: 4.84 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.5137, allocations: 108.9 kB / 0.568 GB, free: 4.715 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.5138, allocations: 7.984 kB / 0.568 GB, free: 4.707 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.514, allocations: 8 kB / 0.568 GB, free: 4.699 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.5141, allocations: 11.98 kB / 0.568 GB, free: 4.688 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.5141, allocations: 5.812 kB / 0.568 GB, free: 4.684 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001982/0.5143, allocations: 156.5 kB / 0.5681 GB, free: 4.531 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5143, allocations: 0 / 0.5681 GB, free: 4.531 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004531/0.5148, allocations: 51.92 kB / 0.5682 GB, free: 4.48 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.000185/0.515, allocations: 103.8 kB / 0.5683 GB, free: 4.371 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0004636/0.5155, allocations: 133.5 kB / 0.5684 GB, free: 4.242 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5155, allocations: 0.75 kB / 0.5684 GB, free: 4.242 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.5156, allocations: 65.61 kB / 0.5685 GB, free: 4.18 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.5161, allocations: 35.28 kB / 0.5685 GB, free: 4.148 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.5176, allocations: 0.5231 MB / 0.569 GB, free: 3.617 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.5181, allocations: 0.7633 MB / 0.5698 GB, free: 2.828 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.5183, allocations: 22.06 kB / 0.5698 GB, free: 2.805 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/0.5184, allocations: 23.42 kB / 0.5698 GB, free: 2.781 MB / 395.1 MB Notification: Performance of SimCode: time 3.81e-07/0.5184, allocations: 0 / 0.5698 GB, free: 2.781 MB / 395.1 MB Notification: Performance of Templates: time 0.008545/0.527, allocations: 1.984 MB / 0.5717 GB, free: 0.8281 MB / 395.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)