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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.0009982, allocations: 88.86 kB / 16.65 MB, free: 6.535 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.00126/0.00126, allocations: 178.5 kB / 17.56 MB, free: 6.18 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.333/1.333, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2426/0.2426, allocations: 48.79 MB / 320.8 MB, free: 11.11 MB / 270.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.000524/0.000524, allocations: 12.3 kB / 391.8 MB, free: 50.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08976, allocations: 60.27 MB / 452.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002809/0.09261, allocations: 2.075 MB / 454.2 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.09384, allocations: 0.6709 MB / 454.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.09406, allocations: 4 kB / 454.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.0942, allocations: 23.78 kB / 454.9 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002638/0.09447, allocations: 63.47 kB / 454.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001733/0.09465, allocations: 51.94 kB / 455 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.09506, allocations: 266.8 kB / 455.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.09523, allocations: 56.7 kB / 455.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.09542, allocations: 95.52 kB / 455.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.09561, allocations: 107.4 kB / 455.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.09565, allocations: 8 kB / 455.5 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.323e-05/0.09572, allocations: 16 kB / 455.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.892e-05/0.09577, allocations: 35.78 kB / 455.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.0959, allocations: 133 kB / 455.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.09615, allocations: 223.2 kB / 455.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.09617, allocations: 4 kB / 455.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.09617, allocations: 0 / 455.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.09619, allocations: 0 / 455.9 MB, free: 5.309 MB / 334.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.0008129/0.09701, allocations: 0.5063 MB / 456.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.09705, allocations: 12.03 kB / 456.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.09717, allocations: 32.55 kB / 456.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.09749, allocations: 262.8 kB / 456.7 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-05/0.09757, allocations: 12.38 kB / 456.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.09761, allocations: 20.38 kB / 456.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.09795, allocations: 183.3 kB / 456.9 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.09797, allocations: 0 / 456.9 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.098, allocations: 7.938 kB / 456.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.09801, allocations: 4 kB / 456.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.09831, allocations: 131.6 kB / 457 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.09937, allocations: 0.6542 MB / 457.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.09964, allocations: 142.4 kB / 457.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.09981, allocations: 88.77 kB / 457.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.09983, allocations: 0 / 457.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.09986, allocations: 30.56 kB / 458 MB, free: 3.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.002e-06/0.09987, allocations: 0 / 458 MB, free: 3.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001107/0.101, allocations: 0.5748 MB / 458.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.101, allocations: 59.41 kB / 458.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.1013, allocations: 229 kB / 458.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.1013, allocations: 29.7 kB / 458.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.238e-05/0.1014, allocations: 148.3 kB / 459 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.876e-05/0.1015, allocations: 67 kB / 459.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.1015, allocations: 25.7 kB / 459.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1017, allocations: 334.8 kB / 459.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.1018, allocations: 59.97 kB / 459.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.1021, allocations: 81.55 kB / 459.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.1023, allocations: 145.5 kB / 459.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1023, allocations: 0 / 459.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003606/0.1027, allocations: 205.4 kB / 459.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1027, allocations: 4 kB / 459.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1027, allocations: 3.938 kB / 459.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1028, allocations: 4 kB / 459.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.1031, allocations: 71.97 kB / 460 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.1043, allocations: 1.343 MB / 461.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.1044, allocations: 23.89 kB / 461.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.1045, allocations: 4 kB / 461.3 MB, free: 15.43 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.1046, allocations: 125.8 kB / 461.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.1046, allocations: 23.72 kB / 461.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.1051, allocations: 199.9 kB / 461.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1051, allocations: 3.938 kB / 461.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.1051, allocations: 0 / 461.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1051, allocations: 3.938 kB / 461.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008201/0.1059, allocations: 0.5335 MB / 462.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.106, allocations: 0 / 462.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002186/0.1062, allocations: 43.92 kB / 462.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1062, allocations: 0 / 462.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1062, allocations: 15.92 kB / 462.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1062, allocations: 0 / 462.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1062, allocations: 4 kB / 462.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.1068, allocations: 355.4 kB / 462.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-05/0.1069, allocations: 108.8 kB / 462.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.1069, allocations: 7.938 kB / 462.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1071, allocations: 11.98 kB / 462.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.1071, allocations: 11.98 kB / 462.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.1071, allocations: 8 kB / 462.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.1073, allocations: 164.5 kB / 462.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1073, allocations: 0 / 462.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.1076, allocations: 44 kB / 463 MB, free: 13.68 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.162e-05/0.1077, allocations: 107.2 kB / 463.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005205/0.1082, allocations: 179.8 kB / 463.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1082, allocations: 4.062 kB / 463.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.1084, allocations: 75.91 kB / 463.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.1088, allocations: 44.34 kB / 463.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.1101, allocations: 0.8224 MB / 464.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.1105, allocations: 0.7524 MB / 465 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.1106, allocations: 29.47 kB / 465 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.652e-05/0.1106, allocations: 19.44 kB / 465 MB, free: 11.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1106, allocations: 0 / 465 MB, free: 11.59 MB / 350.1 MB Notification: Performance of Templates: time 0.005276/0.1159, allocations: 2.124 MB / 467.1 MB, free: 9.473 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: