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.001074/0.001074, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001154/0.001154, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.274/1.274, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2626/0.2626, allocations: 48.85 MB / 319.9 MB, free: 11.08 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.001528/0.001528, allocations: 66.08 kB / 390.1 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09463, allocations: 59.17 MB / 449.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004592/0.09927, allocations: 2.949 MB / 452.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.101, allocations: 0.8229 MB / 453 MB, free: 5.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003488/0.1013, allocations: 7.938 kB / 453 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.1016, allocations: 59.33 kB / 453.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004511/0.1021, allocations: 134.8 kB / 453.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.1024, allocations: 115.8 kB / 453.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.1029, allocations: 490.4 kB / 453.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.1032, allocations: 128.4 kB / 453.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.1034, allocations: 191.2 kB / 454.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.1037, allocations: 203 kB / 454.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.789e-05/0.1038, allocations: 32 kB / 454.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.1039, allocations: 44 kB / 454.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.912e-05/0.104, allocations: 91.55 kB / 454.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.1042, allocations: 218.7 kB / 454.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003964/0.1046, allocations: 402.4 kB / 455.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1046, allocations: 0 / 455.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1046, allocations: 0 / 455.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1046, allocations: 0 / 455.1 MB, free: 3.879 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.001254/0.1059, allocations: 0.7515 MB / 455.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.1059, allocations: 12.03 kB / 455.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.1061, allocations: 52.31 kB / 455.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.1065, allocations: 350.1 kB / 456.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.1066, allocations: 25.03 kB / 456.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/0.1066, allocations: 40.28 kB / 456.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/0.1071, allocations: 297.7 kB / 456.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1071, allocations: 0 / 456.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.1071, allocations: 16 kB / 456.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1072, allocations: 8 kB / 456.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003758/0.1075, allocations: 202.1 kB / 456.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.1091, allocations: 1.116 MB / 457.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.1095, allocations: 242.9 kB / 458.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.1098, allocations: 120.8 kB / 458.3 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.1098, allocations: 0 / 458.3 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.1098, allocations: 38.56 kB / 458.3 MB, free: 448 kB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.183e-06/0.1098, allocations: 0 / 458.3 MB, free: 448 kB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.001733/0.1116, allocations: 0.9333 MB / 459.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.1116, allocations: 55.41 kB / 459.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.112, allocations: 353.7 kB / 459.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.112, allocations: 37.7 kB / 459.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.1122, allocations: 212.3 kB / 459.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.532e-05/0.1123, allocations: 122.2 kB / 460 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.439e-05/0.1124, allocations: 66.08 kB / 460.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1125, allocations: 358.7 kB / 460.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.1127, allocations: 84.66 kB / 460.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.1129, allocations: 141.7 kB / 460.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.1133, allocations: 232 kB / 460.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1133, allocations: 0 / 460.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009211/0.1143, allocations: 425 kB / 461.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1143, allocations: 4 kB / 461.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1143, allocations: 4.125 kB / 461.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005947/0.1149, allocations: 120.7 kB / 461.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004377/0.1153, allocations: 95.88 kB / 461.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.1186, allocations: 3.34 MB / 464.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.1188, allocations: 11.94 kB / 464.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.1188, allocations: 12 kB / 464.9 MB, free: 9.438 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.0001549/0.119, allocations: 157.8 kB / 465 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.1191, allocations: 43.44 kB / 465.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004843/0.1196, allocations: 301.9 kB / 465.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1196, allocations: 7.984 kB / 465.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1196, allocations: 7.922 kB / 465.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1196, allocations: 0 / 465.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.1206, allocations: 0.7444 MB / 466.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1207, allocations: 3.938 kB / 466.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.1211, allocations: 83.89 kB / 466.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1211, allocations: 0 / 466.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.1211, allocations: 8 kB / 466.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1211, allocations: 0 / 466.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1211, allocations: 3.938 kB / 466.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007257/0.1219, allocations: 0.4909 MB / 466.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.122, allocations: 132.6 kB / 466.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.1221, allocations: 8 kB / 466.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1223, allocations: 8 kB / 466.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.712e-05/0.1224, allocations: 15.97 kB / 466.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.1224, allocations: 15.98 kB / 466.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002718/0.1227, allocations: 251.2 kB / 467.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1227, allocations: 4.281 kB / 467.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.1231, allocations: 92 kB / 467.2 MB, free: 6.973 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 0.0001175/0.1232, allocations: 99.19 kB / 467.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.1243, allocations: 466.7 kB / 467.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1243, allocations: 0 / 467.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.1245, allocations: 127.8 kB / 467.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.125, allocations: 78.66 kB / 468 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.127, allocations: 1.078 MB / 469.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.1274, allocations: 0.8159 MB / 469.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000175/0.1276, allocations: 43.09 kB / 469.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.963e-05/0.1277, allocations: 35.42 kB / 470 MB, free: 4.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1277, allocations: 0 / 470 MB, free: 4.18 MB / 350.1 MB Notification: Performance of Templates: time 0.008943/0.1367, allocations: 4.526 MB / 474.5 MB, free: 15.65 MB / 366.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)