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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.00131/0.00131, allocations: 106 kB / 17.06 MB, free: 6.016 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.001164/0.001164, allocations: 195 kB / 18 MB, free: 5.094 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.298/1.298, 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.2799/0.2799, allocations: 48.86 MB / 320.1 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.00262/0.00262, allocations: 71.91 kB / 450 MB, free: 9.086 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1358, allocations: 59.15 MB / 0.4972 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.004128/0.14, allocations: 2.183 MB / 0.4994 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1414, allocations: 0.632 MB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.1416, allocations: 4 kB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.1419, allocations: 27.66 kB / 0.5 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.1422, allocations: 75.41 kB / 0.5001 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001922/0.1424, allocations: 59.8 kB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.1427, allocations: 239 kB / 0.5004 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.1429, allocations: 60.58 kB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.1431, allocations: 107.5 kB / 0.5005 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.1433, allocations: 99.48 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.1434, allocations: 16 kB / 0.5006 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.615e-05/0.1434, allocations: 16 kB / 0.5007 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.1435, allocations: 47.77 kB / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.1436, allocations: 107.4 kB / 0.5008 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.1439, allocations: 191.2 kB / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1439, allocations: 0 / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1439, allocations: 0 / 0.501 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1439, allocations: 4 kB / 0.501 GB, free: 9.922 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008289/0.1447, allocations: 0.5179 MB / 0.5015 GB, free: 9.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1448, allocations: 15.89 kB / 0.5015 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.721e-05/0.1449, allocations: 50.67 kB / 0.5016 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.561e-05/0.145, allocations: 32.56 kB / 0.5016 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.1453, allocations: 258.9 kB / 0.5018 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.1453, allocations: 8.375 kB / 0.5018 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.1454, allocations: 20.31 kB / 0.5019 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1456, allocations: 151.5 kB / 0.502 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1457, allocations: 0 / 0.502 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.1457, allocations: 7.938 kB / 0.502 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1457, allocations: 8 kB / 0.502 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.146, allocations: 95.94 kB / 0.5021 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008307/0.1468, allocations: 0.6036 MB / 0.5027 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.1471, allocations: 130.4 kB / 0.5028 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.1472, allocations: 68.88 kB / 0.5029 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.1472, allocations: 4 kB / 0.5029 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1473, allocations: 38.5 kB / 0.5029 GB, free: 7.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.1473, allocations: 0 / 0.5029 GB, free: 7.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001013/0.1483, allocations: 0.56 MB / 0.5035 GB, free: 7.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.1483, allocations: 51.41 kB / 0.5035 GB, free: 7.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.1486, allocations: 229 kB / 0.5038 GB, free: 6.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.1486, allocations: 33.7 kB / 0.5038 GB, free: 6.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.98e-05/0.1487, allocations: 136.3 kB / 0.5039 GB, free: 6.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.962e-05/0.1487, allocations: 63.09 kB / 0.504 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.813e-05/0.1488, allocations: 41.7 kB / 0.504 GB, free: 6.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1489, allocations: 330.8 kB / 0.5043 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.149, allocations: 47.97 kB / 0.5044 GB, free: 6.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.1492, allocations: 86.47 kB / 0.5045 GB, free: 6.074 MB / 398.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.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.1503, allocations: 421.1 kB / 0.5049 GB, free: 5.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1503, allocations: 0 / 0.5049 GB, free: 5.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003337/0.1506, allocations: 193.2 kB / 0.505 GB, free: 5.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.1507, allocations: 8 kB / 0.505 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1507, allocations: 3.938 kB / 0.5051 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1507, allocations: 0 / 0.5051 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.151, allocations: 64 kB / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.151, allocations: 0 / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.1511, allocations: 7.984 kB / 0.5051 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.1511, allocations: 8 kB / 0.5051 GB, free: 5.352 MB / 398.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.0001155/0.1512, allocations: 133.8 kB / 0.5053 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.1513, allocations: 23.66 kB / 0.5053 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.529e-05/0.1514, allocations: 30.17 kB / 0.5053 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1514, allocations: 4 kB / 0.5053 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1514, allocations: 3.938 kB / 0.5053 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1514, allocations: 0 / 0.5053 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007219/0.1521, allocations: 0.5216 MB / 0.5058 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1522, allocations: 4 kB / 0.5058 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.1524, allocations: 43.97 kB / 0.5059 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.1524, allocations: 8 kB / 0.5059 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1525, allocations: 11.98 kB / 0.5059 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.06e-05/0.1525, allocations: 0 / 0.5059 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1525, allocations: 3.938 kB / 0.5059 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004854/0.153, allocations: 331 kB / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.603e-05/0.1531, allocations: 104.9 kB / 0.5063 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.1531, allocations: 4 kB / 0.5063 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1533, allocations: 8 kB / 0.5063 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.1534, allocations: 11.98 kB / 0.5063 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1534, allocations: 11.92 kB / 0.5063 GB, free: 4.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1535, allocations: 160.5 kB / 0.5065 GB, free: 3.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1535, allocations: 0 / 0.5065 GB, free: 3.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1538, allocations: 44 kB / 0.5065 GB, free: 3.805 MB / 398.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 0.0007448/0.1546, allocations: 0.8647 MB / 0.5074 GB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000338/0.1549, allocations: 139.8 kB / 0.5075 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1549, allocations: 0 / 0.5075 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.1551, allocations: 67.91 kB / 0.5076 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1555, allocations: 48.39 kB / 0.5076 GB, free: 2.664 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.1585, allocations: 2.431 MB / 0.51 GB, free: 144 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1588, allocations: 0.7436 MB / 0.5107 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.396e-05/0.1589, allocations: 17.55 kB / 0.5107 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.1591, allocations: 67.41 kB / 0.5108 GB, free: 15.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1591, allocations: 0 / 0.5108 GB, free: 15.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/0.1818, allocations: 4.411 MB / 0.5151 GB, free: 10.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/7.839, allocations: 7.922 kB / 0.5151 GB, free: 10.82 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)