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.001598/0.001604, allocations: 107.6 kB / 17.06 MB, free: 6.023 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.001687/0.001688, allocations: 191 kB / 18 MB, free: 5.105 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.347/1.347, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2641/0.2641, allocations: 48.84 MB / 320.1 MB, free: 11.03 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.001456/0.001456, allocations: 67.91 kB / 450.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1027, allocations: 59.16 MB / 0.4977 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003859/0.1066, allocations: 3.127 MB / 0.5008 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1079, allocations: 0.8382 MB / 0.5016 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.1081, allocations: 11.94 kB / 0.5016 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1083, allocations: 55.33 kB / 0.5017 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.1086, allocations: 154.7 kB / 0.5018 GB, free: 9.062 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1089, allocations: 123.8 kB / 0.5019 GB, free: 8.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.1094, allocations: 0.5179 MB / 0.5024 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.1096, allocations: 149.4 kB / 0.5026 GB, free: 8.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.1099, allocations: 207.1 kB / 0.5028 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1101, allocations: 226.8 kB / 0.503 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.1102, allocations: 40 kB / 0.503 GB, free: 7.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.485e-05/0.1103, allocations: 40 kB / 0.5031 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.1104, allocations: 95.66 kB / 0.5032 GB, free: 7.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001917/0.1106, allocations: 230.6 kB / 0.5034 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.111, allocations: 434.2 kB / 0.5038 GB, free: 7.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.111, allocations: 3.938 kB / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.111, allocations: 0 / 0.5038 GB, free: 7.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.111, allocations: 0 / 0.5038 GB, free: 7.016 MB / 398.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.001353/0.1124, allocations: 0.7904 MB / 0.5046 GB, free: 6.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1125, allocations: 15.89 kB / 0.5046 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.1126, allocations: 56.28 kB / 0.5046 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.1131, allocations: 374 kB / 0.505 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.1132, allocations: 21.03 kB / 0.505 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.1132, allocations: 48.34 kB / 0.5051 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.1138, allocations: 314.2 kB / 0.5054 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.1138, allocations: 0 / 0.5054 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.1138, allocations: 16 kB / 0.5054 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1138, allocations: 8 kB / 0.5054 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/0.1143, allocations: 218.4 kB / 0.5056 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.116, allocations: 1.164 MB / 0.5067 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005086/0.1165, allocations: 260.3 kB / 0.507 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.1168, allocations: 129.4 kB / 0.5071 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.1168, allocations: 4.281 kB / 0.5071 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.1168, allocations: 30.84 kB / 0.5071 GB, free: 3.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 3.056e-06/0.1168, allocations: 0 / 0.5071 GB, free: 3.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002137/0.119, allocations: 1.08 MB / 0.5082 GB, free: 2.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.119, allocations: 63.39 kB / 0.5083 GB, free: 2.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.1194, allocations: 377.6 kB / 0.5086 GB, free: 1.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1195, allocations: 33.7 kB / 0.5086 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.1196, allocations: 228.8 kB / 0.5089 GB, free: 1.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.655e-05/0.1197, allocations: 122.2 kB / 0.509 GB, free: 1.398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.1198, allocations: 74.03 kB / 0.5091 GB, free: 1.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.12, allocations: 354.7 kB / 0.5094 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.1202, allocations: 96.83 kB / 0.5095 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.1204, allocations: 140.6 kB / 0.5096 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.1208, allocations: 263.9 kB / 0.5099 GB, free: 456 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1208, allocations: 0 / 0.5099 GB, free: 456 kB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005282/0.1214, allocations: 333 kB / 0.5102 GB, free: 116 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1214, allocations: 11.91 kB / 0.5102 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1214, allocations: 7.922 kB / 0.5102 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1214, allocations: 4 kB / 0.5102 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007515/0.1222, allocations: 148 kB / 0.5103 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.1233, allocations: 1.445 MB / 0.5118 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.1235, allocations: 20.02 kB / 0.5118 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.1236, allocations: 12 kB / 0.5118 GB, free: 14.33 MB / 414.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.0001516/0.1237, allocations: 149.8 kB / 0.5119 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/0.1238, allocations: 43.47 kB / 0.512 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005425/0.1244, allocations: 322 kB / 0.5123 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1244, allocations: 4 kB / 0.5123 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.1244, allocations: 0 / 0.5123 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1244, allocations: 0 / 0.5123 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1255, allocations: 0.7991 MB / 0.5131 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1255, allocations: 0 / 0.5131 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.1259, allocations: 79.91 kB / 0.5131 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.1259, allocations: 4 kB / 0.5131 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.126, allocations: 11.98 kB / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.126, allocations: 0 / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.126, allocations: 0 / 0.5132 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007149/0.1267, allocations: 0.5127 MB / 0.5137 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.1268, allocations: 136.5 kB / 0.5138 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.141e-05/0.1269, allocations: 8 kB / 0.5138 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.1271, allocations: 19.98 kB / 0.5138 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.1272, allocations: 15.97 kB / 0.5138 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1272, allocations: 12 kB / 0.5138 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002752/0.1275, allocations: 267.2 kB / 0.5141 GB, free: 11.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1275, allocations: 0 / 0.5141 GB, free: 11.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003648/0.1279, allocations: 84.09 kB / 0.5142 GB, free: 11.77 MB / 414.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.0001022/0.128, allocations: 107.1 kB / 0.5143 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.1287, allocations: 288.1 kB / 0.5146 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1287, allocations: 0 / 0.5146 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.1289, allocations: 131.8 kB / 0.5147 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.1295, allocations: 89.83 kB / 0.5148 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.1314, allocations: 1.117 MB / 0.5159 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1317, allocations: 0.8273 MB / 0.5167 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.1319, allocations: 47.25 kB / 0.5167 GB, free: 9.117 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.132, allocations: 31.44 kB / 0.5167 GB, free: 9.086 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.132, allocations: 0 / 0.5167 GB, free: 9.086 MB / 414.1 MB Notification: Performance of Templates: time 0.008233/0.1402, allocations: 4.333 MB / 0.521 GB, free: 4.75 MB / 414.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)