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.00146/0.00146, allocations: 112.1 kB / 17.68 MB, free: 5.473 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.001711/0.001711, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.264/1.264, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2537/0.2537, allocations: 48.84 MB / 320.7 MB, free: 11.04 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.001425/0.001425, allocations: 69.66 kB / 391.5 MB, free: 48.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08563, allocations: 59.16 MB / 450.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003353/0.08902, allocations: 2.286 MB / 453 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.09004, allocations: 0.6475 MB / 453.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.09016, allocations: 4 kB / 453.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.09032, allocations: 35.59 kB / 453.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.09054, allocations: 87.31 kB / 453.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001537/0.0907, allocations: 55.88 kB / 453.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.09101, allocations: 270.8 kB / 454.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.09117, allocations: 68.69 kB / 454.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.09132, allocations: 103.5 kB / 454.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.09149, allocations: 119.4 kB / 454.3 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.09153, allocations: 16 kB / 454.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.111e-05/0.0916, allocations: 20 kB / 454.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.09165, allocations: 47.78 kB / 454.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.09176, allocations: 119.3 kB / 454.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.09201, allocations: 223.1 kB / 454.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.09203, allocations: 0 / 454.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09204, allocations: 11.94 kB / 454.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.09205, allocations: 0 / 454.8 MB, free: 4.922 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.0008566/0.09291, allocations: 0.549 MB / 455.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.09295, allocations: 15.88 kB / 455.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.09305, allocations: 36.56 kB / 455.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.09341, allocations: 262.8 kB / 455.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.09343, allocations: 12.38 kB / 455.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.09347, allocations: 16.38 kB / 455.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.09378, allocations: 175.4 kB / 455.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.0938, allocations: 0 / 455.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.09383, allocations: 8 kB / 455.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.09384, allocations: 11.94 kB / 455.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.0941, allocations: 115.9 kB / 456 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008892/0.095, allocations: 0.6424 MB / 456.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.09527, allocations: 150.3 kB / 456.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.09542, allocations: 72.86 kB / 456.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.09545, allocations: 4 kB / 456.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.09547, allocations: 34.56 kB / 456.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.09548, allocations: 0 / 456.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001015/0.0965, allocations: 0.5516 MB / 457.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.09655, allocations: 55.41 kB / 457.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.09678, allocations: 229 kB / 457.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.0968, allocations: 33.64 kB / 457.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.0969, allocations: 152.3 kB / 457.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.979e-05/0.09696, allocations: 71 kB / 457.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.09704, allocations: 37.7 kB / 458 MB, free: 1.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.09717, allocations: 334.8 kB / 458.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.0973, allocations: 55.91 kB / 458.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.09744, allocations: 77.53 kB / 458.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.09769, allocations: 129.5 kB / 458.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.0977, allocations: 0 / 458.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003272/0.09803, allocations: 197.6 kB / 458.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.09806, allocations: 8 kB / 458.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.09807, allocations: 0 / 458.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.09808, allocations: 0 / 458.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.09846, allocations: 71.92 kB / 458.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009798/0.09945, allocations: 1.437 MB / 460.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.09959, allocations: 11.98 kB / 460.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.09961, allocations: 4 kB / 460.3 MB, free: 14.97 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.0001039/0.09972, allocations: 130 kB / 460.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.09977, allocations: 23.72 kB / 460.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003245/0.1001, allocations: 189 kB / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1001, allocations: 4 kB / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.1001, allocations: 0 / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1001, allocations: 0 / 460.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006591/0.1008, allocations: 0.5334 MB / 461.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1008, allocations: 3.938 kB / 461.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.101, allocations: 39.98 kB / 461.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.101, allocations: 8 kB / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.1011, allocations: 0 / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1011, allocations: 0 / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1011, allocations: 0 / 461.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.1015, allocations: 352.4 kB / 461.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.419e-05/0.1016, allocations: 112.8 kB / 461.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.1017, allocations: 8 kB / 461.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1018, allocations: 11.98 kB / 461.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.1019, allocations: 7.984 kB / 461.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1019, allocations: 11.94 kB / 461.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000138/0.102, allocations: 168.5 kB / 461.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.102, allocations: 0 / 461.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.1023, allocations: 44 kB / 461.9 MB, free: 13.24 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 8.658e-05/0.1024, allocations: 99.19 kB / 462 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004819/0.1029, allocations: 175.9 kB / 462.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1029, allocations: 0 / 462.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.1031, allocations: 71.91 kB / 462.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1035, allocations: 48.39 kB / 462.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.1045, allocations: 0.6443 MB / 462.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1048, allocations: 0.7521 MB / 463.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.872e-05/0.1049, allocations: 25.53 kB / 463.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.105, allocations: 23.44 kB / 463.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.105, allocations: 0 / 463.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Templates: time 0.005277/0.1103, allocations: 2.331 MB / 466.1 MB, free: 9.023 MB / 350.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 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)