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.0007999/0.0007998, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0007906/0.0007906, allocations: 182 kB / 17.56 MB, free: 6.203 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.33/1.33, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2475/0.2475, allocations: 48.79 MB / 320.8 MB, free: 11.19 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.0007927/0.0007927, allocations: 14.42 kB / 391.8 MB, free: 50.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1034, allocations: 60.27 MB / 452.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003141/0.1066, allocations: 3.011 MB / 455.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.1081, allocations: 0.8655 MB / 456 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.1084, allocations: 11.94 kB / 456 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.1085, allocations: 43.62 kB / 456 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.1089, allocations: 123 kB / 456.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.1091, allocations: 103.9 kB / 456.2 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004441/0.1096, allocations: 0.4944 MB / 456.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.1098, allocations: 129.4 kB / 456.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.11, allocations: 179 kB / 457 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.1103, allocations: 206.9 kB / 457.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1103, allocations: 16 kB / 457.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.088e-05/0.1104, allocations: 20 kB / 457.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.1105, allocations: 71.56 kB / 457.3 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.1107, allocations: 236.4 kB / 457.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.111, allocations: 410.2 kB / 458 MB, free: 3.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.111, allocations: 0 / 458 MB, free: 3.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.111, allocations: 0 / 458 MB, free: 3.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.111, allocations: 0 / 458 MB, free: 3.262 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.001123/0.1122, allocations: 0.7089 MB / 458.7 MB, free: 2.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.1122, allocations: 12.03 kB / 458.7 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.1123, allocations: 52.28 kB / 458.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.1127, allocations: 370 kB / 459.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.1127, allocations: 28.97 kB / 459.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.1128, allocations: 36.38 kB / 459.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.1133, allocations: 318.2 kB / 459.5 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1133, allocations: 3.906 kB / 459.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.1134, allocations: 16 kB / 459.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1134, allocations: 8 kB / 459.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.1138, allocations: 226.4 kB / 459.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.1154, allocations: 1.171 MB / 460.9 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.1159, allocations: 259.6 kB / 461.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.1161, allocations: 133.4 kB / 461.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1161, allocations: 4.281 kB / 461.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1161, allocations: 38.83 kB / 461.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/0.1162, allocations: 0 / 461.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001985/0.1181, allocations: 1.103 MB / 462.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.1182, allocations: 55.41 kB / 462.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.1186, allocations: 377.7 kB / 462.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1186, allocations: 33.7 kB / 462.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1187, allocations: 216.6 kB / 463.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.524e-05/0.1188, allocations: 134.4 kB / 463.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.1189, allocations: 41.7 kB / 463.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.119, allocations: 358.7 kB / 463.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.1192, allocations: 92.83 kB / 463.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1194, allocations: 148.6 kB / 463.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.1198, allocations: 260 kB / 464.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1198, allocations: 4 kB / 464.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005195/0.1204, allocations: 348.9 kB / 464.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1204, allocations: 4 kB / 464.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1204, allocations: 0 / 464.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1204, allocations: 11.97 kB / 464.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000681/0.1211, allocations: 143.8 kB / 464.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009653/0.1221, allocations: 1.362 MB / 466 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.1223, allocations: 16.09 kB / 466 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.1224, allocations: 19.98 kB / 466 MB, free: 10.72 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.0001472/0.1225, allocations: 157.6 kB / 466.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-05/0.1226, allocations: 39.53 kB / 466.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005008/0.1231, allocations: 313.8 kB / 466.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1231, allocations: 19.86 kB / 466.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.1231, allocations: 0 / 466.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1231, allocations: 0 / 466.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009789/0.1241, allocations: 0.7912 MB / 467.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1241, allocations: 0 / 467.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.1245, allocations: 83.89 kB / 467.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1245, allocations: 4 kB / 467.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.1246, allocations: 8 kB / 467.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1246, allocations: 0 / 467.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1246, allocations: 0 / 467.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006793/0.1253, allocations: 0.5227 MB / 467.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.1254, allocations: 136.6 kB / 468.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.1255, allocations: 8 kB / 468.1 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.1257, allocations: 8.188 kB / 468.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.1257, allocations: 23.97 kB / 468.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.1258, allocations: 15.92 kB / 468.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002595/0.126, allocations: 267.2 kB / 468.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.126, allocations: 0 / 468.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.1264, allocations: 84 kB / 468.5 MB, free: 8.152 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 9.808e-05/0.1265, allocations: 109.5 kB / 468.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006239/0.1271, allocations: 288.5 kB / 468.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1271, allocations: 0 / 468.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.1273, allocations: 139.9 kB / 469 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.1279, allocations: 85.42 kB / 469.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.1299, allocations: 1.398 MB / 470.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1303, allocations: 0.8313 MB / 471.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001908/0.1305, allocations: 47.25 kB / 471.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.1306, allocations: 31.44 kB / 471.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1306, allocations: 4 kB / 471.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of Templates: time 0.007554/0.1381, allocations: 3.954 MB / 475.3 MB, free: 1.223 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: