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.001132/0.001132, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001204/0.001204, allocations: 192.5 kB / 18.67 MB, free: 4.434 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.28/1.28, allocations: 205.1 MB / 224.5 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.2571/0.2571, allocations: 48.84 MB / 320.7 MB, free: 11.02 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.001567/0.001568, allocations: 63.91 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.1002, allocations: 59.16 MB / 0.4984 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004225/0.1044, allocations: 3.13 MB / 0.5014 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.1061, allocations: 0.8382 MB / 0.5023 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003242/0.1065, allocations: 7.938 kB / 0.5023 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.1067, allocations: 59.31 kB / 0.5023 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005062/0.1073, allocations: 142.8 kB / 0.5025 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003518/0.1076, allocations: 123.8 kB / 0.5026 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006637/0.1083, allocations: 0.5218 MB / 0.5031 GB, free: 8.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.1086, allocations: 153.3 kB / 0.5032 GB, free: 8.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003983/0.109, allocations: 203.1 kB / 0.5034 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003593/0.1093, allocations: 226.8 kB / 0.5037 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.087e-05/0.1094, allocations: 32 kB / 0.5037 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1096, allocations: 44 kB / 0.5037 GB, free: 7.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.1097, allocations: 91.66 kB / 0.5038 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.1099, allocations: 238.6 kB / 0.504 GB, free: 7.449 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.1104, allocations: 434.2 kB / 0.5045 GB, free: 7.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1104, allocations: 0 / 0.5045 GB, free: 7.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1105, allocations: 0 / 0.5045 GB, free: 7.023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.1105, allocations: 0 / 0.5045 GB, free: 7.023 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.001582/0.1121, allocations: 0.7905 MB / 0.5052 GB, free: 6.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1121, allocations: 11.89 kB / 0.5052 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.1123, allocations: 56.28 kB / 0.5053 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/0.1129, allocations: 370 kB / 0.5056 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.1129, allocations: 25.03 kB / 0.5057 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.541e-05/0.113, allocations: 40.36 kB / 0.5057 GB, free: 5.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005454/0.1136, allocations: 322.2 kB / 0.506 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1136, allocations: 0 / 0.506 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.1136, allocations: 16 kB / 0.506 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.1137, allocations: 4 kB / 0.506 GB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000475/0.1141, allocations: 214.4 kB / 0.5062 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1161, allocations: 1.175 MB / 0.5074 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004692/0.1166, allocations: 260.5 kB / 0.5076 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.1168, allocations: 125.4 kB / 0.5078 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.1168, allocations: 4.281 kB / 0.5078 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.1168, allocations: 34.84 kB / 0.5078 GB, free: 3.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.775e-06/0.1168, allocations: 0 / 0.5078 GB, free: 3.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002261/0.1191, allocations: 1.08 MB / 0.5088 GB, free: 2.242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1192, allocations: 55.41 kB / 0.5089 GB, free: 2.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.1196, allocations: 381.6 kB / 0.5093 GB, free: 1.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.1196, allocations: 37.7 kB / 0.5093 GB, free: 1.754 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1198, allocations: 220.5 kB / 0.5095 GB, free: 1.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.982e-05/0.1198, allocations: 126.5 kB / 0.5096 GB, free: 1.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.12, allocations: 74.05 kB / 0.5097 GB, free: 1.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1201, allocations: 358.7 kB / 0.51 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1203, allocations: 92.83 kB / 0.5101 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1205, allocations: 144.6 kB / 0.5103 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.1209, allocations: 259.9 kB / 0.5105 GB, free: 468 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1209, allocations: 4 kB / 0.5105 GB, free: 464 kB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005988/0.1215, allocations: 333 kB / 0.5108 GB, free: 124 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1216, allocations: 7.906 kB / 0.5108 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1216, allocations: 0 / 0.5108 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.1216, allocations: 4 kB / 0.5108 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007215/0.1223, allocations: 156 kB / 0.511 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1236, allocations: 1.445 MB / 0.5124 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.1239, allocations: 15.98 kB / 0.5124 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.1239, allocations: 8 kB / 0.5124 GB, free: 14.34 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.000177/0.1241, allocations: 157.9 kB / 0.5126 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/0.1242, allocations: 47.47 kB / 0.5126 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005173/0.1247, allocations: 317.9 kB / 0.5129 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1247, allocations: 3.938 kB / 0.5129 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1247, allocations: 4 kB / 0.5129 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1247, allocations: 0 / 0.5129 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.1259, allocations: 0.7873 MB / 0.5137 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1259, allocations: 3.984 kB / 0.5137 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.1263, allocations: 83.91 kB / 0.5138 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.1264, allocations: 4 kB / 0.5138 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1264, allocations: 7.984 kB / 0.5138 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1264, allocations: 4 kB / 0.5138 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1264, allocations: 0 / 0.5138 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006747/0.1271, allocations: 0.5049 MB / 0.5143 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.1272, allocations: 144.5 kB / 0.5144 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.1273, allocations: 4 kB / 0.5144 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.1275, allocations: 12 kB / 0.5145 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.1276, allocations: 19.97 kB / 0.5145 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.1276, allocations: 11.98 kB / 0.5145 GB, free: 12.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003011/0.1279, allocations: 267.2 kB / 0.5147 GB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1279, allocations: 0 / 0.5147 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.1283, allocations: 88.09 kB / 0.5148 GB, free: 11.79 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.000147/0.1285, allocations: 107.1 kB / 0.5149 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006085/0.1291, allocations: 280.1 kB / 0.5152 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1291, allocations: 0 / 0.5152 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.1293, allocations: 131.8 kB / 0.5153 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.1298, allocations: 85.88 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.001981/0.1318, allocations: 1.138 MB / 0.5165 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.1322, allocations: 0.8266 MB / 0.5173 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1323, allocations: 35.42 kB / 0.5173 GB, free: 9.121 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1323, allocations: 0 / 0.5173 GB, free: 9.121 MB / 414.1 MB Notification: Performance of Templates: time 0.00833/0.1407, allocations: 5.498 MB / 0.5227 GB, free: 3.613 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)