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.001145/0.001145, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001157/0.001157, allocations: 191 kB / 18 MB, free: 5.102 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.286/1.286, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2607/0.2607, allocations: 48.85 MB / 320.1 MB, free: 11 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.001358/0.001358, allocations: 68.42 kB / 450.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09797, allocations: 59.16 MB / 0.4977 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.003733/0.1017, allocations: 2.954 MB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.103, allocations: 0.8072 MB / 0.5014 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.1032, allocations: 7.938 kB / 0.5014 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.1033, allocations: 59.38 kB / 0.5015 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003216/0.1037, allocations: 134.8 kB / 0.5016 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.1039, allocations: 111.8 kB / 0.5017 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004485/0.1044, allocations: 494.3 kB / 0.5022 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1046, allocations: 144.1 kB / 0.5023 GB, free: 8.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.1048, allocations: 187.2 kB / 0.5025 GB, free: 8.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1051, allocations: 210.9 kB / 0.5027 GB, free: 8.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.1051, allocations: 32 kB / 0.5027 GB, free: 8.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.1052, allocations: 36 kB / 0.5028 GB, free: 8.094 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.812e-05/0.1053, allocations: 83.61 kB / 0.5028 GB, free: 8.012 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.1055, allocations: 214.8 kB / 0.503 GB, free: 7.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.1059, allocations: 414 kB / 0.5034 GB, free: 7.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1059, allocations: 0 / 0.5034 GB, free: 7.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1059, allocations: 0 / 0.5034 GB, free: 7.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1059, allocations: 0 / 0.5034 GB, free: 7.395 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.001171/0.1071, allocations: 0.7746 MB / 0.5042 GB, free: 6.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.1072, allocations: 8.031 kB / 0.5042 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.1073, allocations: 56.61 kB / 0.5043 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.1077, allocations: 362.4 kB / 0.5046 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1078, allocations: 29.03 kB / 0.5046 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.1078, allocations: 32.33 kB / 0.5047 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.1083, allocations: 309.6 kB / 0.505 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1084, allocations: 0 / 0.505 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.1084, allocations: 8 kB / 0.505 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1084, allocations: 8 kB / 0.505 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.1088, allocations: 206.1 kB / 0.5052 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.1104, allocations: 1.113 MB / 0.5063 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.1108, allocations: 243 kB / 0.5065 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.111, allocations: 116.8 kB / 0.5066 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.111, allocations: 8 kB / 0.5066 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.111, allocations: 35.09 kB / 0.5066 GB, free: 3.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.462e-06/0.111, allocations: 4 kB / 0.5066 GB, free: 3.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001688/0.1127, allocations: 0.9259 MB / 0.5075 GB, free: 2.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.1128, allocations: 59.41 kB / 0.5076 GB, free: 2.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003623/0.1132, allocations: 361.6 kB / 0.508 GB, free: 2.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.1132, allocations: 41.64 kB / 0.508 GB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1133, allocations: 204.7 kB / 0.5082 GB, free: 2.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.902e-05/0.1134, allocations: 126.9 kB / 0.5083 GB, free: 2.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.1135, allocations: 70.08 kB / 0.5084 GB, free: 2.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1137, allocations: 358.7 kB / 0.5087 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.1139, allocations: 84.72 kB / 0.5088 GB, free: 1.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.1141, allocations: 133.7 kB / 0.5089 GB, free: 1.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/0.1146, allocations: 243.8 kB / 0.5092 GB, free: 1.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1146, allocations: 0 / 0.5092 GB, free: 1.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009698/0.1156, allocations: 425.5 kB / 0.5096 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1156, allocations: 7.906 kB / 0.5096 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.1156, allocations: 3.984 kB / 0.5096 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006587/0.1163, allocations: 120.8 kB / 0.5097 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.1167, allocations: 95.88 kB / 0.5098 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003167/0.1199, allocations: 3.336 MB / 0.513 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.1201, allocations: 23.88 kB / 0.5131 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.1202, allocations: 8 kB / 0.5131 GB, free: 12.88 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.0001489/0.1203, allocations: 154.4 kB / 0.5132 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.1204, allocations: 39.77 kB / 0.5133 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004839/0.1209, allocations: 302 kB / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1209, allocations: 4 kB / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1209, allocations: 3.938 kB / 0.5135 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1209, allocations: 3.984 kB / 0.5136 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009812/0.1219, allocations: 0.7488 MB / 0.5143 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.1219, allocations: 3.938 kB / 0.5143 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.1223, allocations: 79.89 kB / 0.5144 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1223, allocations: 4 kB / 0.5144 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.1224, allocations: 8 kB / 0.5144 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1224, allocations: 4 kB / 0.5144 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1224, allocations: 3.938 kB / 0.5144 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006512/0.123, allocations: 495.9 kB / 0.5149 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.1232, allocations: 136.8 kB / 0.515 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/0.1232, allocations: 8 kB / 0.515 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.1234, allocations: 8 kB / 0.515 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.1235, allocations: 23.97 kB / 0.515 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.1235, allocations: 11.94 kB / 0.515 GB, free: 10.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.1238, allocations: 259.2 kB / 0.5153 GB, free: 10.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1238, allocations: 0 / 0.5153 GB, free: 10.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.1242, allocations: 84 kB / 0.5154 GB, free: 10.43 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.0001095/0.1243, allocations: 103.2 kB / 0.5155 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009036/0.1252, allocations: 443 kB / 0.5159 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1252, allocations: 192 / 0.5159 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.1254, allocations: 127.7 kB / 0.516 GB, free: 9.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.1259, allocations: 93.45 kB / 0.5161 GB, free: 9.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1277, allocations: 1.069 MB / 0.5171 GB, free: 8.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.128, allocations: 0.8198 MB / 0.5179 GB, free: 7.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.1282, allocations: 42.94 kB / 0.518 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.68e-05/0.1283, allocations: 31.44 kB / 0.518 GB, free: 7.641 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1283, allocations: 0 / 0.518 GB, free: 7.641 MB / 414.1 MB Notification: Performance of Templates: time 0.008552/0.1369, allocations: 4.615 MB / 0.5225 GB, free: 3.02 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)