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.001362/0.001362, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.00138/0.00138, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.331/1.331, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2655/0.2655, allocations: 48.84 MB / 320.7 MB, free: 11.01 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.001631/0.001631, allocations: 68.45 kB / 451.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1074, allocations: 59.15 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004401/0.1119, allocations: 3.138 MB / 0.5015 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.1137, allocations: 0.8421 MB / 0.5023 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003369/0.114, allocations: 4 kB / 0.5023 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002501/0.1143, allocations: 59.31 kB / 0.5023 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004927/0.1148, allocations: 146.8 kB / 0.5025 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.1152, allocations: 123.8 kB / 0.5026 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006652/0.1158, allocations: 0.5179 MB / 0.5031 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.1161, allocations: 149.3 kB / 0.5032 GB, free: 8.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003337/0.1165, allocations: 207.1 kB / 0.5034 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003417/0.1168, allocations: 226.8 kB / 0.5037 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-05/0.1169, allocations: 36 kB / 0.5037 GB, free: 7.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.117, allocations: 48 kB / 0.5037 GB, free: 7.754 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.1171, allocations: 87.62 kB / 0.5038 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.1174, allocations: 238.6 kB / 0.504 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000473/0.1178, allocations: 430.3 kB / 0.5045 GB, free: 7.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1179, allocations: 3.938 kB / 0.5045 GB, free: 7.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1179, allocations: 0 / 0.5045 GB, free: 7.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1179, allocations: 0 / 0.5045 GB, free: 7.008 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.001355/0.1192, allocations: 0.7904 MB / 0.5052 GB, free: 6.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1193, allocations: 11.89 kB / 0.5052 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.1194, allocations: 60.28 kB / 0.5053 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005346/0.12, allocations: 370 kB / 0.5057 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.12, allocations: 29.03 kB / 0.5057 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.1201, allocations: 32.38 kB / 0.5057 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.1206, allocations: 326.2 kB / 0.506 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1207, allocations: 0 / 0.506 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.1207, allocations: 8 kB / 0.506 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1207, allocations: 11.98 kB / 0.506 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.1211, allocations: 214.5 kB / 0.5062 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.1228, allocations: 1.171 MB / 0.5074 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004859/0.1233, allocations: 260.3 kB / 0.5076 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.1236, allocations: 125.4 kB / 0.5078 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.1236, allocations: 8.266 kB / 0.5078 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1236, allocations: 34.84 kB / 0.5078 GB, free: 3.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/0.1236, allocations: 0 / 0.5078 GB, free: 3.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002096/0.1257, allocations: 1.072 MB / 0.5088 GB, free: 2.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.1258, allocations: 59.41 kB / 0.5089 GB, free: 2.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.1262, allocations: 377.6 kB / 0.5093 GB, free: 1.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1262, allocations: 37.7 kB / 0.5093 GB, free: 1.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1264, allocations: 220.9 kB / 0.5095 GB, free: 1.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.772e-05/0.1265, allocations: 126.2 kB / 0.5096 GB, free: 1.398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/0.1266, allocations: 78.03 kB / 0.5097 GB, free: 1.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1267, allocations: 350.7 kB / 0.51 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.1269, allocations: 100.8 kB / 0.5101 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.1271, allocations: 148.6 kB / 0.5103 GB, free: 0.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003898/0.1275, allocations: 252 kB / 0.5105 GB, free: 456 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1275, allocations: 4 kB / 0.5105 GB, free: 452 kB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005285/0.1281, allocations: 341 kB / 0.5108 GB, free: 104 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1281, allocations: 4 kB / 0.5108 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1281, allocations: 3.938 kB / 0.5109 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1281, allocations: 4 kB / 0.5109 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007105/0.1288, allocations: 152.1 kB / 0.511 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.13, allocations: 1.437 MB / 0.5124 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.1302, allocations: 12 kB / 0.5124 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.1303, allocations: 16 kB / 0.5124 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.00015/0.1304, allocations: 153.7 kB / 0.5126 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/0.1305, allocations: 47.55 kB / 0.5126 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004903/0.131, allocations: 318 kB / 0.5129 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.131, allocations: 0 / 0.5129 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.131, allocations: 7.984 kB / 0.5129 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.131, allocations: 3.984 kB / 0.5129 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.132, allocations: 0.7873 MB / 0.5137 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1321, allocations: 0 / 0.5137 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003998/0.1325, allocations: 83.89 kB / 0.5138 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.1325, allocations: 8 kB / 0.5138 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.1325, allocations: 4 kB / 0.5138 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1325, allocations: 4 kB / 0.5138 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1325, allocations: 0 / 0.5138 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000695/0.1332, allocations: 0.5126 MB / 0.5143 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.1334, allocations: 136.5 kB / 0.5144 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.1334, allocations: 11.98 kB / 0.5144 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.1337, allocations: 12 kB / 0.5145 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.1337, allocations: 19.97 kB / 0.5145 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1338, allocations: 8 kB / 0.5145 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.134, allocations: 267.2 kB / 0.5147 GB, free: 11.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1341, allocations: 0 / 0.5147 GB, free: 11.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.1344, allocations: 88 kB / 0.5148 GB, free: 11.78 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.0001093/0.1345, allocations: 103.2 kB / 0.5149 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00061/0.1352, allocations: 288.1 kB / 0.5152 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1352, allocations: 0 / 0.5152 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002066/0.1354, allocations: 123.9 kB / 0.5153 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005391/0.1359, allocations: 85.48 kB / 0.5154 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.1378, allocations: 1.139 MB / 0.5165 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.1382, allocations: 0.8228 MB / 0.5173 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.1383, allocations: 31.44 kB / 0.5173 GB, free: 9.121 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1383, allocations: 4 kB / 0.5173 GB, free: 9.117 MB / 414.1 MB Notification: Performance of Templates: time 0.007901/0.1462, allocations: 5.44 MB / 0.5227 GB, free: 3.668 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)