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.0009383/0.0009382, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0009577/0.0009576, allocations: 182.1 kB / 17.2 MB, free: 5.906 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.265/1.265, allocations: 205.4 MB / 223.4 MB, free: 5.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3509/0.3509, allocations: 48.77 MB / 320.4 MB, free: 3.828 MB / 254.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.000476/0.0004761, allocations: 19.98 kB / 391.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.09938, allocations: 60.25 MB / 451.4 MB, free: 1.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002236/0.1017, allocations: 1.914 MB / 453.3 MB, free: 4 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.169/0.2707, allocations: 0.6525 MB / 454 MB, free: 47.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.2709, allocations: 6.75 kB / 454 MB, free: 47.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.706e-05/0.271, allocations: 24.56 kB / 454 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.2714, allocations: 97.62 kB / 454.1 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.2716, allocations: 48.38 kB / 454.1 MB, free: 47.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.2719, allocations: 187.1 kB / 454.3 MB, free: 47.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.272, allocations: 47.11 kB / 454.4 MB, free: 47.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.2722, allocations: 100.1 kB / 454.5 MB, free: 47.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.2723, allocations: 99.11 kB / 454.5 MB, free: 47.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.2724, allocations: 8.312 kB / 454.6 MB, free: 47.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.997e-05/0.2724, allocations: 15.05 kB / 454.6 MB, free: 47.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.071e-05/0.2725, allocations: 35.5 kB / 454.6 MB, free: 47.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.2725, allocations: 65.92 kB / 454.7 MB, free: 47.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.2727, allocations: 158.7 kB / 454.8 MB, free: 47.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.2727, allocations: 0 / 454.8 MB, free: 47.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2727, allocations: 0 / 454.8 MB, free: 47.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2727, allocations: 0.7188 kB / 454.8 MB, free: 47.34 MB / 382.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.000695/0.2734, allocations: 0.524 MB / 455.4 MB, free: 46.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2734, allocations: 8.719 kB / 455.4 MB, free: 46.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.851e-05/0.2735, allocations: 30.12 kB / 455.4 MB, free: 46.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.2738, allocations: 262.7 kB / 455.6 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.2738, allocations: 12.97 kB / 455.7 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.2738, allocations: 16.97 kB / 455.7 MB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.2741, allocations: 181.3 kB / 455.9 MB, free: 46.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2742, allocations: 0 / 455.9 MB, free: 46.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.2742, allocations: 6.844 kB / 455.9 MB, free: 46.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2742, allocations: 2.812 kB / 455.9 MB, free: 46.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.2744, allocations: 129.2 kB / 456 MB, free: 46.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007757/0.2752, allocations: 0.6521 MB / 456.6 MB, free: 46.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.2755, allocations: 139.8 kB / 456.8 MB, free: 46.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.2755, allocations: 5.812 kB / 456.8 MB, free: 46.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.2755, allocations: 33.94 kB / 456.8 MB, free: 46.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.763e-06/0.2755, allocations: 0 / 456.8 MB, free: 46.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009437/0.2765, allocations: 0.5801 MB / 457.4 MB, free: 45.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/0.2765, allocations: 57.55 kB / 457.5 MB, free: 45.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.2767, allocations: 232.2 kB / 457.7 MB, free: 45.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.2767, allocations: 31.3 kB / 457.7 MB, free: 45.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.2768, allocations: 149.4 kB / 457.9 MB, free: 45.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.2768, allocations: 56.09 kB / 457.9 MB, free: 45.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-06/0.2768, allocations: 3.25 kB / 457.9 MB, free: 45.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.2769, allocations: 333.5 kB / 458.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.277, allocations: 58.91 kB / 458.3 MB, free: 45.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2771, allocations: 75.53 kB / 458.4 MB, free: 45.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.2773, allocations: 70.03 kB / 458.4 MB, free: 45.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2773, allocations: 0 / 458.4 MB, free: 45.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003012/0.2776, allocations: 202 kB / 458.6 MB, free: 45.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.2776, allocations: 6 kB / 458.6 MB, free: 45.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2776, allocations: 3 kB / 458.6 MB, free: 45.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.2777, allocations: 3.953 kB / 458.6 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.278, allocations: 71.53 kB / 458.7 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006894/0.2787, allocations: 1.351 MB / 460.1 MB, free: 43.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.2789, allocations: 16.25 kB / 460.1 MB, free: 43.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.2789, allocations: 9.219 kB / 460.1 MB, free: 43.71 MB / 382.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 (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 8.234e-05/0.279, allocations: 127.2 kB / 460.2 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.279, allocations: 22.59 kB / 460.2 MB, free: 43.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002934/0.2793, allocations: 202.9 kB / 460.4 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2793, allocations: 2.781 kB / 460.4 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.2794, allocations: 5.953 kB / 460.4 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2794, allocations: 0 / 460.4 MB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/0.28, allocations: 0.5413 MB / 461 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.28, allocations: 0 / 461 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.2802, allocations: 47.88 kB / 461 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2802, allocations: 0 / 461 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2802, allocations: 5.25 kB / 461 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2802, allocations: 0 / 461 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2802, allocations: 7.141 kB / 461 MB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004273/0.2807, allocations: 352.4 kB / 461.4 MB, free: 43.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.841e-05/0.2807, allocations: 109.2 kB / 461.5 MB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.2808, allocations: 4.969 kB / 461.5 MB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.2809, allocations: 8.031 kB / 461.5 MB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.281, allocations: 23.02 kB / 461.5 MB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.281, allocations: 4.859 kB / 461.5 MB, free: 42.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001156/0.2811, allocations: 170.8 kB / 461.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2811, allocations: 0 / 461.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.2814, allocations: 41.91 kB / 461.7 MB, free: 42.87 MB / 382.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 (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 7.575e-05/0.2815, allocations: 97.06 kB / 461.8 MB, free: 42.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004905/0.282, allocations: 182.2 kB / 462 MB, free: 42.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.282, allocations: 0 / 462 MB, free: 42.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.2821, allocations: 79.09 kB / 462.1 MB, free: 42.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.2824, allocations: 33.41 kB / 462.1 MB, free: 42.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009902/0.2834, allocations: 0.7957 MB / 462.9 MB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.2836, allocations: 0.7627 MB / 463.7 MB, free: 41.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.78e-05/0.2837, allocations: 27.44 kB / 463.7 MB, free: 41.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.609e-05/0.2838, allocations: 26.44 kB / 463.7 MB, free: 41.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2838, allocations: 0 / 463.7 MB, free: 41.57 MB / 382.1 MB Notification: Performance of Templates: time 0.004372/0.2881, allocations: 2.064 MB / 465.8 MB, free: 41.41 MB / 382.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: