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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001622/0.001622, allocations: 200 kB / 18.01 MB, free: 5.055 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.387/1.387, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2714/0.2714, allocations: 48.84 MB / 320.1 MB, free: 10.99 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.00143/0.00143, allocations: 71.89 kB / 450 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1206, allocations: 59.15 MB / 0.4972 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.00439/0.125, allocations: 3.139 MB / 0.5003 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.1267, allocations: 0.8305 MB / 0.5011 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003221/0.127, allocations: 11.94 kB / 0.5011 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002171/0.1272, allocations: 55.31 kB / 0.5012 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004753/0.1277, allocations: 154.7 kB / 0.5013 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.1281, allocations: 123.8 kB / 0.5014 GB, free: 9.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006555/0.1287, allocations: 0.5217 MB / 0.502 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.129, allocations: 145.4 kB / 0.5021 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.1293, allocations: 211.1 kB / 0.5023 GB, free: 8.539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.1297, allocations: 218.8 kB / 0.5025 GB, free: 8.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.944e-05/0.1298, allocations: 36 kB / 0.5025 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.1299, allocations: 44 kB / 0.5026 GB, free: 8.246 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.293e-05/0.13, allocations: 91.61 kB / 0.5027 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.1302, allocations: 230.7 kB / 0.5029 GB, free: 7.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.1307, allocations: 442.2 kB / 0.5033 GB, free: 7.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1307, allocations: 0 / 0.5033 GB, free: 7.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1307, allocations: 0 / 0.5033 GB, free: 7.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1307, allocations: 0 / 0.5033 GB, free: 7.496 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.001375/0.1321, allocations: 0.7865 MB / 0.5041 GB, free: 6.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1321, allocations: 15.89 kB / 0.5041 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.885e-05/0.1322, allocations: 66.72 kB / 0.5042 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1324, allocations: 56.28 kB / 0.5042 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005423/0.1329, allocations: 378 kB / 0.5046 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.1329, allocations: 25.03 kB / 0.5046 GB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.133, allocations: 36.38 kB / 0.5046 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.1335, allocations: 318 kB / 0.5049 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.1335, allocations: 7.938 kB / 0.5049 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1336, allocations: 8 kB / 0.505 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.1336, allocations: 15.94 kB / 0.505 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003989/0.134, allocations: 210.5 kB / 0.5052 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.1357, allocations: 1.167 MB / 0.5063 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004646/0.1362, allocations: 261.1 kB / 0.5066 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.1364, allocations: 125.4 kB / 0.5067 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.1364, allocations: 8.281 kB / 0.5067 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.1365, allocations: 38.78 kB / 0.5067 GB, free: 3.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.333e-06/0.1365, allocations: 0 / 0.5067 GB, free: 3.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002099/0.1386, allocations: 1.072 MB / 0.5078 GB, free: 2.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.1386, allocations: 55.41 kB / 0.5078 GB, free: 2.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.139, allocations: 385.5 kB / 0.5082 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.139, allocations: 41.7 kB / 0.5082 GB, free: 2.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1392, allocations: 220.6 kB / 0.5084 GB, free: 1.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.1393, allocations: 126.2 kB / 0.5086 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.1394, allocations: 74.05 kB / 0.5086 GB, free: 1.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1395, allocations: 350.8 kB / 0.509 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.1397, allocations: 88.84 kB / 0.509 GB, free: 1.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.1399, allocations: 156.5 kB / 0.5092 GB, free: 1.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003675/0.1403, allocations: 252 kB / 0.5094 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1403, allocations: 4 kB / 0.5094 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005082/0.1408, allocations: 337 kB / 0.5098 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1408, allocations: 7.906 kB / 0.5098 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1408, allocations: 0 / 0.5098 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1408, allocations: 7.984 kB / 0.5098 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.1416, allocations: 151.8 kB / 0.5099 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.1427, allocations: 1.445 MB / 0.5113 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.143, allocations: 12 kB / 0.5113 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.143, allocations: 15.98 kB / 0.5114 GB, free: 14.74 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.0001578/0.1432, allocations: 153.7 kB / 0.5115 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.964e-05/0.1433, allocations: 43.47 kB / 0.5115 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005006/0.1438, allocations: 321.9 kB / 0.5119 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1438, allocations: 8.047 kB / 0.5119 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.1438, allocations: 4 kB / 0.5119 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1438, allocations: 0 / 0.5119 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.1448, allocations: 0.7797 MB / 0.5126 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1449, allocations: 0 / 0.5126 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.1453, allocations: 83.89 kB / 0.5127 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.1453, allocations: 4 kB / 0.5127 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1453, allocations: 4 kB / 0.5127 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1453, allocations: 4 kB / 0.5127 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1453, allocations: 4 kB / 0.5127 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.146, allocations: 0.5166 MB / 0.5132 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1461, allocations: 140.5 kB / 0.5134 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.1462, allocations: 8 kB / 0.5134 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.1464, allocations: 8 kB / 0.5134 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.1465, allocations: 24 kB / 0.5134 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.1465, allocations: 15.98 kB / 0.5134 GB, free: 12.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.1468, allocations: 267.2 kB / 0.5137 GB, free: 12.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1468, allocations: 0 / 0.5137 GB, free: 12.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1471, allocations: 91.94 kB / 0.5138 GB, free: 12.17 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.001048/0.1482, allocations: 1.048 MB / 0.5148 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007074/0.1489, allocations: 284 kB / 0.5151 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1489, allocations: 0 / 0.5151 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.1491, allocations: 131.8 kB / 0.5152 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.1497, allocations: 94.06 kB / 0.5153 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00482/0.1545, allocations: 3.961 MB / 0.5191 GB, free: 6.531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.1549, allocations: 0.8235 MB / 0.5199 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.1551, allocations: 51.23 kB / 0.52 GB, free: 5.629 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.1553, allocations: 147.4 kB / 0.5201 GB, free: 5.484 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1553, allocations: 0 / 0.5201 GB, free: 5.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2442/0.3995, allocations: 8.801 MB / 0.5287 GB, free: 30.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/8.574, allocations: 12.67 kB / 0.5287 GB, free: 30.51 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)