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.001377/0.001377, allocations: 104 kB / 17.59 MB, free: 5.555 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.00158/0.00158, allocations: 195.5 kB / 18.52 MB, free: 4.633 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.431/1.431, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2972/0.2972, allocations: 48.85 MB / 320.6 MB, free: 11.09 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.002078/0.002078, allocations: 67.23 kB / 390.7 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08016/0.08225, allocations: 59.16 MB / 449.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004672/0.08695, allocations: 3.131 MB / 453 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.08846, allocations: 0.8382 MB / 453.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.08864, allocations: 7.938 kB / 453.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.08882, allocations: 59.31 kB / 453.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.08919, allocations: 150.8 kB / 454.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.08946, allocations: 123.8 kB / 454.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005531/0.09003, allocations: 0.5179 MB / 454.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002694/0.0903, allocations: 141.8 kB / 454.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.09056, allocations: 203.1 kB / 455.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.09086, allocations: 222.9 kB / 455.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.146e-05/0.09094, allocations: 36 kB / 455.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.09105, allocations: 39.98 kB / 455.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.755e-05/0.09115, allocations: 91.62 kB / 455.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.09138, allocations: 234.7 kB / 455.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.09184, allocations: 434.2 kB / 456.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.09185, allocations: 0 / 456.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09186, allocations: 4 kB / 456.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.09188, allocations: 0 / 456.1 MB, free: 3.52 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.001421/0.0933, allocations: 0.7866 MB / 456.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.09335, allocations: 11.89 kB / 456.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.09349, allocations: 60.27 kB / 457 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/0.09398, allocations: 366 kB / 457.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.09402, allocations: 21.03 kB / 457.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/0.09409, allocations: 36.38 kB / 457.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.09462, allocations: 326.2 kB / 457.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.09465, allocations: 0 / 457.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.09469, allocations: 16 kB / 457.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.0947, allocations: 8 kB / 457.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.09513, allocations: 214.4 kB / 457.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.09701, allocations: 1.175 MB / 459.1 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.09753, allocations: 271.5 kB / 459.4 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.09778, allocations: 121.8 kB / 459.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.09782, allocations: 4.281 kB / 459.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.09786, allocations: 38.84 kB / 459.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.773e-06/0.09786, allocations: 0 / 459.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002217/0.1001, allocations: 1.072 MB / 460.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.1001, allocations: 55.41 kB / 460.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004394/0.1006, allocations: 381.7 kB / 461 MB, free: 14.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.1006, allocations: 29.7 kB / 461.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.1008, allocations: 232.4 kB / 461.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.807e-05/0.1009, allocations: 122.2 kB / 461.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.101, allocations: 78.03 kB / 461.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1012, allocations: 354.7 kB / 461.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.1014, allocations: 96.84 kB / 461.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.1017, allocations: 140.6 kB / 462.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.1021, allocations: 260 kB / 462.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1021, allocations: 0 / 462.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000586/0.1027, allocations: 340.9 kB / 462.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1027, allocations: 4 kB / 462.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1027, allocations: 0 / 462.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1028, allocations: 4 kB / 462.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007454/0.1035, allocations: 152 kB / 462.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.1048, allocations: 1.445 MB / 464.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.1051, allocations: 12 kB / 464.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.1051, allocations: 11.98 kB / 464.3 MB, free: 10.85 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.0001762/0.1053, allocations: 161.8 kB / 464.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.75e-05/0.1054, allocations: 43.47 kB / 464.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005635/0.106, allocations: 314 kB / 464.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.106, allocations: 4 kB / 464.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.106, allocations: 3.984 kB / 464.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.106, allocations: 0 / 464.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.1071, allocations: 0.7907 MB / 465.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1072, allocations: 4 kB / 465.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.1076, allocations: 83.83 kB / 465.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.1076, allocations: 3.938 kB / 465.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.1076, allocations: 12 kB / 465.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1076, allocations: 0 / 465.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1077, allocations: 0 / 465.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007826/0.1084, allocations: 0.5154 MB / 466.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.1086, allocations: 140.5 kB / 466.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.256e-05/0.1087, allocations: 8 kB / 466.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.1089, allocations: 8 kB / 466.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.109, allocations: 19.97 kB / 466.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.109, allocations: 15.98 kB / 466.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003028/0.1093, allocations: 263.2 kB / 466.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1093, allocations: 0 / 466.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.1097, allocations: 88 kB / 466.7 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.0001158/0.1098, allocations: 111.2 kB / 466.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.1105, allocations: 292.1 kB / 467.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1106, allocations: 0 / 467.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.1108, allocations: 127.9 kB / 467.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.1114, allocations: 82.97 kB / 467.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.1135, allocations: 1.147 MB / 468.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.1139, allocations: 0.8189 MB / 469.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.1141, allocations: 35.42 kB / 469.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1141, allocations: 0 / 469.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of Templates: time 0.008277/0.1223, allocations: 5.409 MB / 474.7 MB, free: 204 kB / 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)