Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 108.2 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.0009932/0.0009933, 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.3/1.3, 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.262/0.262, allocations: 48.84 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.001551/0.001551, allocations: 69.06 kB / 390.1 MB, free: 48.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09306, allocations: 59.16 MB / 449.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004639/0.09775, allocations: 3.133 MB / 452.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.09949, allocations: 0.8304 MB / 453.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.09984, allocations: 4 kB / 453.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.1001, allocations: 63.31 kB / 453.3 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004987/0.1006, allocations: 146.8 kB / 453.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.101, allocations: 123.8 kB / 453.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006638/0.1017, allocations: 0.5218 MB / 454.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.1019, allocations: 149.7 kB / 454.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.1023, allocations: 199.1 kB / 454.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.1026, allocations: 222.9 kB / 454.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.849e-05/0.1027, allocations: 36 kB / 454.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.1029, allocations: 43.98 kB / 454.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.655e-05/0.103, allocations: 95.55 kB / 454.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.1032, allocations: 226.7 kB / 455 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004539/0.1037, allocations: 438.2 kB / 455.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1037, allocations: 0 / 455.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1037, allocations: 0 / 455.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.1037, allocations: 0 / 455.4 MB, free: 3.523 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001438/0.1052, allocations: 0.7866 MB / 456.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1052, allocations: 11.89 kB / 456.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.1054, allocations: 60.27 kB / 456.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.1058, allocations: 362 kB / 456.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.1059, allocations: 25.03 kB / 456.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.567e-05/0.106, allocations: 40.38 kB / 456.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.1065, allocations: 322.2 kB / 457 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.1065, allocations: 0 / 457 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.1065, allocations: 12 kB / 457 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1066, allocations: 8 kB / 457 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004025/0.107, allocations: 214.4 kB / 457.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.109, allocations: 1.179 MB / 458.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.1095, allocations: 263.6 kB / 458.7 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.1098, allocations: 129.7 kB / 458.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.1098, allocations: 288 / 458.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.1099, allocations: 38.84 kB / 458.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.343e-06/0.1099, allocations: 0 / 458.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002243/0.1121, allocations: 1.08 MB / 459.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.1122, allocations: 59.34 kB / 460 MB, free: 14.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.1126, allocations: 377.7 kB / 460.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.1126, allocations: 29.7 kB / 460.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1128, allocations: 228.5 kB / 460.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.492e-05/0.1129, allocations: 114.2 kB / 460.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.113, allocations: 81.97 kB / 460.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1131, allocations: 362.7 kB / 461.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.1133, allocations: 88.84 kB / 461.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.1136, allocations: 144.6 kB / 461.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.114, allocations: 256 kB / 461.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.114, allocations: 0 / 461.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006361/0.1147, allocations: 340.9 kB / 462 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.1147, allocations: 4 kB / 462 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1147, allocations: 4 kB / 462 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1147, allocations: 128 / 462 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000725/0.1155, allocations: 151.8 kB / 462.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.1166, allocations: 1.453 MB / 463.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.1169, allocations: 12.03 kB / 463.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.1169, allocations: 24.11 kB / 463.6 MB, free: 10.84 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 (48): * Single equations (assignments): 47 * 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.0001797/0.1171, allocations: 153.6 kB / 463.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.1172, allocations: 43.47 kB / 463.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/0.1177, allocations: 314 kB / 464.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1177, allocations: 4 kB / 464.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.1178, allocations: 3.984 kB / 464.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1178, allocations: 0 / 464.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.1189, allocations: 0.7868 MB / 464.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.1189, allocations: 0 / 464.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/0.1193, allocations: 87.83 kB / 465 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1193, allocations: 0 / 465 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.1194, allocations: 8 kB / 465 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1194, allocations: 0 / 465 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1194, allocations: 0 / 465 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007374/0.1201, allocations: 0.5193 MB / 465.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.1203, allocations: 140.5 kB / 465.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.1204, allocations: 8 kB / 465.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.1206, allocations: 8 kB / 465.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.1207, allocations: 23.95 kB / 465.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.1207, allocations: 11.98 kB / 465.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002862/0.121, allocations: 267.2 kB / 466 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.121, allocations: 4 kB / 466 MB, free: 8.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.1214, allocations: 84 kB / 466.1 MB, free: 8.281 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.0001196/0.1215, allocations: 107.2 kB / 466.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007957/0.1223, allocations: 304.2 kB / 466.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1223, allocations: 4 kB / 466.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.1225, allocations: 136 kB / 466.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/0.1231, allocations: 78.66 kB / 466.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.125, allocations: 1.13 MB / 467.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.1254, allocations: 0.8274 MB / 468.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.1256, allocations: 47.25 kB / 468.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1257, allocations: 31.44 kB / 468.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1258, allocations: 0 / 468.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of Templates: time 0.008666/0.1344, allocations: 4.249 MB / 473 MB, free: 1.32 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)