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.001136/0.001136, allocations: 112.3 kB / 17.74 MB, free: 5.312 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.001146/0.001146, allocations: 183 kB / 18.67 MB, free: 4.395 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.338/1.338, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2656/0.2656, 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.001563/0.001563, allocations: 71.91 kB / 451.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 59.15 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004923/0.1224, allocations: 2.957 MB / 0.5013 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.1244, allocations: 0.8151 MB / 0.5021 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004704/0.1249, allocations: 4 kB / 0.5021 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.1252, allocations: 59.31 kB / 0.5021 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006757/0.1259, allocations: 138.8 kB / 0.5023 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.1264, allocations: 107.8 kB / 0.5024 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007729/0.1272, allocations: 0.4904 MB / 0.5028 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.1275, allocations: 140 kB / 0.503 GB, free: 8.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.1277, allocations: 187.3 kB / 0.5032 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.128, allocations: 206.9 kB / 0.5034 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-05/0.1281, allocations: 32 kB / 0.5034 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.1282, allocations: 44 kB / 0.5034 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.1283, allocations: 87.62 kB / 0.5035 GB, free: 7.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1284, allocations: 222.7 kB / 0.5037 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.1289, allocations: 406.4 kB / 0.5041 GB, free: 7.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1289, allocations: 3.938 kB / 0.5041 GB, free: 7.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1289, allocations: 0 / 0.5041 GB, free: 7.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1289, allocations: 0 / 0.5041 GB, free: 7.363 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001224/0.1302, allocations: 0.7516 MB / 0.5048 GB, free: 6.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1302, allocations: 12.03 kB / 0.5049 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.1303, allocations: 48.38 kB / 0.5049 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000503/0.1309, allocations: 358.1 kB / 0.5052 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.1309, allocations: 21.03 kB / 0.5053 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/0.131, allocations: 44.27 kB / 0.5053 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.1314, allocations: 297.6 kB / 0.5056 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1315, allocations: 0 / 0.5056 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.1315, allocations: 16 kB / 0.5056 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.1315, allocations: 15.98 kB / 0.5056 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.132, allocations: 198.1 kB / 0.5058 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.134, allocations: 1.108 MB / 0.5069 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.1344, allocations: 243 kB / 0.5071 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.1346, allocations: 112.8 kB / 0.5072 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1346, allocations: 7.984 kB / 0.5072 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1347, allocations: 39.09 kB / 0.5073 GB, free: 3.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.403e-06/0.1347, allocations: 0 / 0.5073 GB, free: 3.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001708/0.1364, allocations: 0.9328 MB / 0.5082 GB, free: 2.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.1364, allocations: 55.41 kB / 0.5082 GB, free: 2.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.1368, allocations: 361.7 kB / 0.5086 GB, free: 2.488 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.1368, allocations: 29.7 kB / 0.5086 GB, free: 2.453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.137, allocations: 208.4 kB / 0.5088 GB, free: 2.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.849e-05/0.137, allocations: 118.2 kB / 0.5089 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.472e-05/0.1371, allocations: 66.06 kB / 0.509 GB, free: 2.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1373, allocations: 354.7 kB / 0.5093 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.1374, allocations: 88.7 kB / 0.5094 GB, free: 1.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.1376, allocations: 137.7 kB / 0.5095 GB, free: 1.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.138, allocations: 239.8 kB / 0.5098 GB, free: 1.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.138, allocations: 4 kB / 0.5098 GB, free: 1.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000866/0.1389, allocations: 421.2 kB / 0.5102 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1389, allocations: 7.984 kB / 0.5102 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1389, allocations: 4 kB / 0.5102 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005791/0.1395, allocations: 124.8 kB / 0.5103 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003991/0.1399, allocations: 83.89 kB / 0.5104 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/0.1429, allocations: 3.344 MB / 0.5137 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.1432, allocations: 15.88 kB / 0.5137 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.1432, allocations: 16 kB / 0.5137 GB, free: 12.91 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 (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.000182/0.1434, allocations: 154.4 kB / 0.5138 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.1435, allocations: 39.59 kB / 0.5139 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004689/0.1439, allocations: 301.9 kB / 0.5142 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.144, allocations: 7.938 kB / 0.5142 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.144, allocations: 3.938 kB / 0.5142 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.144, allocations: 4 kB / 0.5142 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009008/0.1449, allocations: 0.7333 MB / 0.5149 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.1449, allocations: 11.92 kB / 0.5149 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.1453, allocations: 83.91 kB / 0.515 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1453, allocations: 0 / 0.515 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1453, allocations: 8 kB / 0.515 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.1453, allocations: 0 / 0.515 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1453, allocations: 0 / 0.515 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006199/0.1459, allocations: 0.4956 MB / 0.5155 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.1461, allocations: 132.6 kB / 0.5156 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.1461, allocations: 12.28 kB / 0.5156 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.1463, allocations: 11.98 kB / 0.5156 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.1464, allocations: 19.97 kB / 0.5156 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.1464, allocations: 11.94 kB / 0.5157 GB, free: 10.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.1467, allocations: 251.2 kB / 0.5159 GB, free: 10.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1467, allocations: 0 / 0.5159 GB, free: 10.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000354/0.147, allocations: 92 kB / 0.516 GB, free: 10.45 MB / 414.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.0001127/0.1472, allocations: 103.2 kB / 0.5161 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008471/0.148, allocations: 418.9 kB / 0.5165 GB, free: 9.918 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.148, allocations: 0 / 0.5165 GB, free: 9.918 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.1482, allocations: 131.7 kB / 0.5166 GB, free: 9.789 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.1487, allocations: 81.8 kB / 0.5167 GB, free: 9.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.1504, allocations: 1.087 MB / 0.5177 GB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1507, allocations: 0.8152 MB / 0.5185 GB, free: 7.746 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.182e-05/0.1508, allocations: 27.44 kB / 0.5186 GB, free: 7.719 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1509, allocations: 0 / 0.5186 GB, free: 7.719 MB / 414.1 MB Notification: Performance of Templates: time 0.007388/0.1582, allocations: 5.788 MB / 0.5242 GB, free: 1.918 MB / 414.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)