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.001032/0.001032, allocations: 93.38 kB / 16.31 MB, free: 5.582 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.001258/0.001258, allocations: 181.2 kB / 17.21 MB, free: 5.5 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.351/1.351, allocations: 205.4 MB / 223.4 MB, free: 5.227 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4074/0.4074, allocations: 48.77 MB / 320.4 MB, free: 3.844 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.0005283/0.0005284, allocations: 16 kB / 391.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1127, allocations: 60.26 MB / 451.4 MB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.1774/0.2901, allocations: 2.005 MB / 453.4 MB, free: 47.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2913, allocations: 0.6422 MB / 454.1 MB, free: 47.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.2915, allocations: 9.375 kB / 454.1 MB, free: 47.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.2916, allocations: 25.31 kB / 454.1 MB, free: 47.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.2919, allocations: 76.17 kB / 454.2 MB, free: 47.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001509/0.292, allocations: 42.27 kB / 454.2 MB, free: 47.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.2923, allocations: 251.4 kB / 454.5 MB, free: 47.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.2925, allocations: 56.88 kB / 454.5 MB, free: 47.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.2926, allocations: 90.48 kB / 454.6 MB, free: 47.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.2928, allocations: 99.08 kB / 454.7 MB, free: 47.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.2928, allocations: 11.59 kB / 454.7 MB, free: 47.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.797e-05/0.2929, allocations: 12.81 kB / 454.7 MB, free: 47.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.213e-05/0.2929, allocations: 43.56 kB / 454.8 MB, free: 47.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.2929, allocations: 68.48 kB / 454.8 MB, free: 47.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.2931, allocations: 151.1 kB / 455 MB, free: 47.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2931, allocations: 0.6562 kB / 455 MB, free: 47.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2931, allocations: 0 / 455 MB, free: 47.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2931, allocations: 4 kB / 455 MB, free: 47.03 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.0006576/0.2938, allocations: 0.5225 MB / 455.5 MB, free: 46.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2938, allocations: 12.66 kB / 455.5 MB, free: 46.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.829e-05/0.2939, allocations: 30.06 kB / 455.6 MB, free: 46.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.2942, allocations: 255 kB / 455.8 MB, free: 46.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.2942, allocations: 17.41 kB / 455.8 MB, free: 46.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.2943, allocations: 12.81 kB / 455.8 MB, free: 46.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.2945, allocations: 185.4 kB / 456 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2946, allocations: 2.203 kB / 456 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2946, allocations: 9.531 kB / 456 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.2946, allocations: 2.938 kB / 456 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.2948, allocations: 125.4 kB / 456.2 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.2957, allocations: 0.6532 MB / 456.8 MB, free: 45.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.2959, allocations: 137 kB / 456.9 MB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.2961, allocations: 89.45 kB / 457 MB, free: 45.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.2961, allocations: 6.312 kB / 457 MB, free: 45.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.2961, allocations: 38.5 kB / 457.1 MB, free: 45.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.2961, allocations: 0 / 457.1 MB, free: 45.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009395/0.2971, allocations: 0.5806 MB / 457.7 MB, free: 45.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.2971, allocations: 54.25 kB / 457.7 MB, free: 45.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.2973, allocations: 229.3 kB / 457.9 MB, free: 45.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.2973, allocations: 29.2 kB / 458 MB, free: 45.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.2974, allocations: 144.8 kB / 458.1 MB, free: 45.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.417e-05/0.2975, allocations: 60.14 kB / 458.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.2975, allocations: 7.188 kB / 458.2 MB, free: 45.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.2976, allocations: 335.8 kB / 458.5 MB, free: 44.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.2977, allocations: 52.92 kB / 458.5 MB, free: 44.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.2978, allocations: 73.31 kB / 458.6 MB, free: 44.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.298, allocations: 69.55 kB / 458.7 MB, free: 44.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.298, allocations: 3.938 kB / 458.7 MB, free: 44.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003092/0.2983, allocations: 200 kB / 458.9 MB, free: 44.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2983, allocations: 5.719 kB / 458.9 MB, free: 44.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2983, allocations: 7.984 kB / 458.9 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2983, allocations: 6.5 kB / 458.9 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.2987, allocations: 69.05 kB / 459 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/0.2995, allocations: 1.341 MB / 460.3 MB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.2996, allocations: 13.22 kB / 460.3 MB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.2997, allocations: 9.281 kB / 460.3 MB, free: 43.4 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.573e-05/0.2997, allocations: 139.5 kB / 460.5 MB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.2998, allocations: 16.19 kB / 460.5 MB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.3001, allocations: 192 kB / 460.7 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.3001, allocations: 2.969 kB / 460.7 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.3001, allocations: 3.953 kB / 460.7 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3001, allocations: 4.547 kB / 460.7 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.3006, allocations: 0.5426 MB / 461.2 MB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3006, allocations: 3.094 kB / 461.2 MB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.3008, allocations: 46.11 kB / 461.3 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3009, allocations: 3.234 kB / 461.3 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3009, allocations: 2.75 kB / 461.3 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.3009, allocations: 10.98 kB / 461.3 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3009, allocations: 0.6562 kB / 461.3 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.3013, allocations: 352.4 kB / 461.6 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.3013, allocations: 107 kB / 461.7 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.3014, allocations: 7.312 kB / 461.7 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.3015, allocations: 12.22 kB / 461.8 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.3016, allocations: 13 kB / 461.8 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.3016, allocations: 5.703 kB / 461.8 MB, free: 42.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.3017, allocations: 168.3 kB / 461.9 MB, free: 42.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3017, allocations: 6.969 kB / 462 MB, free: 42.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.302, allocations: 47.22 kB / 462 MB, free: 42.56 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 8.538e-05/0.3021, allocations: 96.3 kB / 462.1 MB, free: 42.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.3026, allocations: 178.7 kB / 462.3 MB, free: 42.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3026, allocations: 0 / 462.3 MB, free: 42.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3028, allocations: 75.61 kB / 462.3 MB, free: 42.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.3032, allocations: 36.86 kB / 462.4 MB, free: 42.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.3042, allocations: 0.8032 MB / 463.2 MB, free: 41.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/0.3044, allocations: 0.7505 MB / 463.9 MB, free: 41.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3045, allocations: 30.38 kB / 464 MB, free: 41.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.008e-05/0.3046, allocations: 21.31 kB / 464 MB, free: 41.26 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3046, allocations: 0 / 464 MB, free: 41.26 MB / 382.1 MB Notification: Performance of Templates: time 0.004333/0.3089, allocations: 2.054 MB / 466 MB, free: 41.11 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: