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.001092/0.001092, allocations: 104.7 kB / 16.51 MB, free: 6.645 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.001077/0.001077, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.115/1.115, allocations: 205.1 MB / 223.3 MB, free: 12.47 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2227/0.2227, allocations: 48.83 MB / 319.4 MB, free: 11.32 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.001246/0.001246, allocations: 65.23 kB / 389.5 MB, free: 49.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07027/0.07153, allocations: 59.16 MB / 448.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.002939/0.0745, allocations: 2.348 MB / 451 MB, free: 7.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009764/0.0755, allocations: 0.6397 MB / 451.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.07564, allocations: 4 kB / 451.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.07576, allocations: 23.78 kB / 451.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.07597, allocations: 55.55 kB / 451.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001184/0.07609, allocations: 51.94 kB / 451.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002054/0.07631, allocations: 234.9 kB / 452 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.07643, allocations: 56.88 kB / 452 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.07656, allocations: 95.52 kB / 452.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.07669, allocations: 87.55 kB / 452.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.07672, allocations: 12 kB / 452.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.07678, allocations: 12 kB / 452.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.07682, allocations: 39.77 kB / 452.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.07691, allocations: 99.41 kB / 452.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.0771, allocations: 187.2 kB / 452.5 MB, free: 6.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.07711, allocations: 8 kB / 452.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.07711, allocations: 0 / 452.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.07713, allocations: 0 / 452.5 MB, free: 6.203 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007043/0.07783, allocations: 0.528 MB / 453.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.07787, allocations: 12.03 kB / 453.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.088e-05/0.07792, allocations: 50.69 kB / 453.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.078, allocations: 28.64 kB / 453.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.07824, allocations: 250.9 kB / 453.4 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.07826, allocations: 12.38 kB / 453.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.809e-05/0.07829, allocations: 16.31 kB / 453.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.07855, allocations: 167.4 kB / 453.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.07857, allocations: 0 / 453.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.07859, allocations: 4 kB / 453.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.0786, allocations: 8 kB / 453.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.07881, allocations: 95.94 kB / 453.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007043/0.07953, allocations: 0.6113 MB / 454.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.07976, allocations: 126.5 kB / 454.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.07988, allocations: 68.88 kB / 454.5 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.0799, allocations: 4.219 kB / 454.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.07993, allocations: 46.5 kB / 454.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.07994, allocations: 0 / 454.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008968/0.08084, allocations: 0.5559 MB / 455.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.08087, allocations: 51.41 kB / 455.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/0.08106, allocations: 225 kB / 455.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.08108, allocations: 37.7 kB / 455.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.925e-05/0.08116, allocations: 140.3 kB / 455.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.0812, allocations: 59.11 kB / 455.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.08126, allocations: 37.7 kB / 455.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.08136, allocations: 330.8 kB / 456 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.08147, allocations: 51.97 kB / 456 MB, free: 2.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.0816, allocations: 87.14 kB / 456.1 MB, free: 2.348 MB / 334.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.1591549430918953 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.08263, allocations: 420.7 kB / 456.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-06/0.08264, allocations: 0 / 456.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002957/0.08294, allocations: 189.3 kB / 456.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.08296, allocations: 12 kB / 456.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.08297, allocations: 3.938 kB / 456.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.08298, allocations: 0 / 456.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.08322, allocations: 59.97 kB / 456.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.08323, allocations: 3.984 kB / 456.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.08335, allocations: 4 kB / 456.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.08336, allocations: 8 kB / 456.8 MB, free: 1.629 MB / 334.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.0001024/0.08347, allocations: 137.8 kB / 456.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.08353, allocations: 23.66 kB / 457 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.08358, allocations: 30.11 kB / 457 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.08359, allocations: 4 kB / 457 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.08359, allocations: 0 / 457 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.0836, allocations: 3.984 kB / 457 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005944/0.0842, allocations: 0.5247 MB / 457.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.08421, allocations: 0 / 457.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.08446, allocations: 47.97 kB / 457.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.08447, allocations: 0 / 457.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.08449, allocations: 7.984 kB / 457.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.08449, allocations: 0 / 457.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.0845, allocations: 3.938 kB / 457.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004162/0.08492, allocations: 335 kB / 457.9 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.423e-05/0.085, allocations: 108.8 kB / 458 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.08504, allocations: 4 kB / 458 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.08518, allocations: 4 kB / 458 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.08523, allocations: 15.97 kB / 458 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.08524, allocations: 11.88 kB / 458 MB, free: 296 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.08537, allocations: 160.5 kB / 458.2 MB, free: 132 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08537, allocations: 0 / 458.2 MB, free: 132 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.08562, allocations: 44 kB / 458.2 MB, free: 88 kB / 334.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.0006106/0.08624, allocations: 0.8566 MB / 459.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.08652, allocations: 145.3 kB / 459.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.08653, allocations: 0 / 459.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.08665, allocations: 67.91 kB / 459.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.08698, allocations: 48.38 kB / 459.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.0895, allocations: 2.517 MB / 461.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.08973, allocations: 0.7398 MB / 462.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.831e-05/0.08982, allocations: 17.55 kB / 462.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.82e-05/0.08992, allocations: 67.41 kB / 462.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.08993, allocations: 4 kB / 462.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.1023, allocations: 3.977 MB / 466.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.1024, allocations: 214.8 kB / 466.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/1.732, allocations: 0 / 466.9 MB, free: 7.195 MB / 350.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)