Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001286, allocations: 100.3 kB / 17.59 MB, free: 5.578 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.001318/0.001318, allocations: 191.3 kB / 18.51 MB, free: 4.656 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.504/1.504, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.322/0.322, allocations: 48.85 MB / 320.6 MB, free: 11.1 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.001915/0.001915, allocations: 66.45 kB / 390.7 MB, free: 48.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1116, allocations: 59.17 MB / 449.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003556/0.1152, allocations: 2.18 MB / 452.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1163, allocations: 0.6281 MB / 452.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.1165, allocations: 7.938 kB / 452.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.1166, allocations: 23.72 kB / 452.7 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.1168, allocations: 83.33 kB / 452.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.117, allocations: 43.94 kB / 452.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.1173, allocations: 246.9 kB / 453.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.1175, allocations: 52.38 kB / 453.2 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.1177, allocations: 103.6 kB / 453.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.1178, allocations: 103.5 kB / 453.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.1179, allocations: 19.94 kB / 453.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.716e-05/0.118, allocations: 16 kB / 453.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.323e-05/0.118, allocations: 39.83 kB / 453.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1181, allocations: 103.4 kB / 453.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1183, allocations: 191.5 kB / 453.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1184, allocations: 4 kB / 453.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1184, allocations: 0 / 453.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1184, allocations: 7.984 kB / 453.7 MB, free: 5.914 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008632/0.1193, allocations: 0.5179 MB / 454.3 MB, free: 5.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1193, allocations: 15.89 kB / 454.3 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.1194, allocations: 32.56 kB / 454.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.1197, allocations: 258.8 kB / 454.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.1197, allocations: 12.38 kB / 454.6 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.1198, allocations: 16.36 kB / 454.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.1201, allocations: 151.6 kB / 454.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.1201, allocations: 3.984 kB / 454.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.1201, allocations: 11.94 kB / 454.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.1201, allocations: 4 kB / 454.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.1204, allocations: 103.9 kB / 454.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008275/0.1212, allocations: 0.6037 MB / 455.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.1215, allocations: 122.5 kB / 455.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1216, allocations: 68.83 kB / 455.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.1217, allocations: 4 kB / 455.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1217, allocations: 30.56 kB / 455.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 4.548e-06/0.1217, allocations: 7.984 kB / 455.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001051/0.1228, allocations: 0.5638 MB / 456.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.1228, allocations: 51.41 kB / 456.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.123, allocations: 225 kB / 456.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.123, allocations: 29.7 kB / 456.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.469e-05/0.1231, allocations: 144.3 kB / 456.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.1232, allocations: 67.03 kB / 456.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.98e-05/0.1233, allocations: 37.7 kB / 456.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1234, allocations: 326.8 kB / 457.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.1235, allocations: 51.97 kB / 457.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.1237, allocations: 86.39 kB / 457.2 MB, free: 2.121 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.1591549430918953 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1248, allocations: 422.2 kB / 457.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1248, allocations: 4 kB / 457.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003356/0.1252, allocations: 193.2 kB / 457.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1252, allocations: 4 kB / 457.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1252, allocations: 4 kB / 457.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1252, allocations: 0 / 457.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.1255, allocations: 51.97 kB / 457.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1255, allocations: 4 kB / 457.9 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.1256, allocations: 16.02 kB / 457.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.1257, allocations: 8 kB / 457.9 MB, free: 1.398 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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 prepare postOptimizeDAE: time 0.0001299/0.1258, allocations: 129.8 kB / 458.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.1259, allocations: 27.66 kB / 458.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.888e-05/0.1259, allocations: 26.17 kB / 458.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1259, allocations: 7.938 kB / 458.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.126, allocations: 0 / 458.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.126, allocations: 0 / 458.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006739/0.1266, allocations: 0.521 MB / 458.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1267, allocations: 0 / 458.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.1269, allocations: 59.91 kB / 458.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1269, allocations: 4 kB / 458.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.127, allocations: 0 / 458.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.127, allocations: 3.984 kB / 458.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.127, allocations: 0 / 458.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.1275, allocations: 335 kB / 459 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.082e-05/0.1276, allocations: 108.8 kB / 459.1 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.1276, allocations: 4 kB / 459.1 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.1277, allocations: 8 kB / 459.2 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.1278, allocations: 7.984 kB / 459.2 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.1278, allocations: 8 kB / 459.2 MB, free: 72 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.128, allocations: 172.4 kB / 459.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 459.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1283, allocations: 40 kB / 459.4 MB, free: 15.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (18): * Single equations (assignments): 18 * 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 9.756e-05/0.1284, allocations: 103.3 kB / 459.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003675/0.1287, allocations: 139.9 kB / 459.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.1288, allocations: 0 / 459.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1289, allocations: 75.91 kB / 459.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.1293, allocations: 33.83 kB / 459.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.1303, allocations: 0.5946 MB / 460.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1306, allocations: 0.7398 MB / 461.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.1307, allocations: 19.44 kB / 461.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1307, allocations: 7.938 kB / 461.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Templates: time 0.0039/0.1346, allocations: 2.353 MB / 463.4 MB, free: 11.73 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)