Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 101.7 kB / 16.5 MB, free: 6.652 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.0009781/0.0009782, allocations: 191.1 kB / 17.42 MB, free: 6.07 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.244/1.244, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2511/0.2511, allocations: 48.85 MB / 319.5 MB, free: 11.31 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.001309/0.001309, allocations: 62.89 kB / 389.3 MB, free: 49.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08178/0.0831, allocations: 59.16 MB / 448.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003953/0.0871, allocations: 3.162 MB / 451.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.08865, allocations: 0.8384 MB / 452.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.08887, allocations: 11.94 kB / 452.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.08908, allocations: 43.58 kB / 452.6 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.08938, allocations: 119.1 kB / 452.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.08958, allocations: 95.89 kB / 452.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003783/0.08996, allocations: 466.3 kB / 453.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.09019, allocations: 120.1 kB / 453.3 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.09038, allocations: 187.1 kB / 453.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.09061, allocations: 195 kB / 453.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.601e-05/0.09067, allocations: 20 kB / 453.7 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.392e-05/0.09076, allocations: 24 kB / 453.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.705e-05/0.09086, allocations: 79.61 kB / 453.8 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.09102, allocations: 210.7 kB / 454 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.09134, allocations: 386.4 kB / 454.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.09135, allocations: 0 / 454.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.09136, allocations: 0 / 454.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.09137, allocations: 0 / 454.4 MB, free: 4.32 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001145/0.09252, allocations: 0.7594 MB / 455.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.09256, allocations: 8.031 kB / 455.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.09268, allocations: 48.38 kB / 455.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.09303, allocations: 350.1 kB / 455.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.09306, allocations: 29.03 kB / 455.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.09312, allocations: 36.28 kB / 455.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.09356, allocations: 297.7 kB / 455.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.09358, allocations: 0 / 455.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.09361, allocations: 12 kB / 455.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.09363, allocations: 8 kB / 456 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.09398, allocations: 210 kB / 456.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.09559, allocations: 1.112 MB / 457.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.09599, allocations: 248.4 kB / 457.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.09619, allocations: 120.8 kB / 457.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.09623, allocations: 0 / 457.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.09626, allocations: 34.56 kB / 457.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 2.324e-06/0.09626, allocations: 3.984 kB / 457.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001722/0.09799, allocations: 0.9296 MB / 458.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.09805, allocations: 63.33 kB / 458.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004149/0.09847, allocations: 357.7 kB / 459 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.09851, allocations: 29.7 kB / 459 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.09865, allocations: 216.3 kB / 459.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.503e-05/0.09875, allocations: 122.2 kB / 459.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.084e-05/0.09884, allocations: 66.06 kB / 459.4 MB, free: 15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.09905, allocations: 350.7 kB / 459.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.09923, allocations: 88.7 kB / 459.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.09943, allocations: 133.7 kB / 460 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.09981, allocations: 243.9 kB / 460.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.09982, allocations: 3.938 kB / 460.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009552/0.1008, allocations: 421.2 kB / 460.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1008, allocations: 4 kB / 460.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1008, allocations: 4 kB / 460.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006162/0.1014, allocations: 116.9 kB / 460.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.1019, allocations: 95.88 kB / 460.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003152/0.1051, allocations: 3.108 MB / 464 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.1053, allocations: 15.98 kB / 464 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.1053, allocations: 11.94 kB / 464 MB, free: 10.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.1055, allocations: 158.5 kB / 464.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.1056, allocations: 47.53 kB / 464.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.1061, allocations: 301.9 kB / 464.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.1061, allocations: 4 kB / 464.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.1061, allocations: 0 / 464.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1061, allocations: 8.25 kB / 464.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000965/0.1071, allocations: 0.748 MB / 465.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1071, allocations: 0 / 465.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.1075, allocations: 83.84 kB / 465.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1075, allocations: 4 kB / 465.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.1075, allocations: 7.984 kB / 465.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1075, allocations: 4 kB / 465.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1076, allocations: 0 / 465.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007086/0.1083, allocations: 499.5 kB / 465.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.1084, allocations: 136.6 kB / 466 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.614e-05/0.1085, allocations: 8 kB / 466 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.1087, allocations: 8 kB / 466 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.1087, allocations: 27.84 kB / 466 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1088, allocations: 8 kB / 466 MB, free: 7.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000249/0.109, allocations: 259.2 kB / 466.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.894e-06/0.109, allocations: 0 / 466.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.1094, allocations: 87.94 kB / 466.4 MB, free: 7.648 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * 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 (34): * Single equations (assignments): 34 * 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.741e-05/0.1095, allocations: 107.2 kB / 466.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008589/0.1104, allocations: 437.8 kB / 466.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1104, allocations: 4.25 kB / 466.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.1106, allocations: 123.8 kB / 467 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.1111, allocations: 81.59 kB / 467.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.1129, allocations: 1.222 MB / 468.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.1133, allocations: 0.8198 MB / 469.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.1134, allocations: 42.94 kB / 469.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.521e-05/0.1135, allocations: 31.42 kB / 469.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1136, allocations: 0 / 469.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of Templates: time 0.007786/0.1213, allocations: 4.248 MB / 473.5 MB, free: 484 kB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)