Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.0006573/0.0006573, allocations: 91.48 kB / 16.65 MB, free: 6.59 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.0007112/0.0007113, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.118/1.118, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2278/0.2278, allocations: 48.78 MB / 320.8 MB, free: 11.19 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.0004297/0.0004297, allocations: 14.58 kB / 391.9 MB, free: 49.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07182/0.07226, allocations: 60.26 MB / 452.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002053/0.07434, allocations: 2.087 MB / 454.3 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008613/0.07522, allocations: 0.667 MB / 454.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.502e-05/0.07533, allocations: 3.938 kB / 454.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.842e-05/0.07542, allocations: 19.84 kB / 454.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.07562, allocations: 79.45 kB / 455 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.07574, allocations: 43.95 kB / 455.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.076, allocations: 262.8 kB / 455.3 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.07614, allocations: 56.72 kB / 455.4 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.07627, allocations: 103.4 kB / 455.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.07641, allocations: 107.4 kB / 455.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.07644, allocations: 8 kB / 455.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.07649, allocations: 12 kB / 455.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.07653, allocations: 39.72 kB / 455.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.07664, allocations: 133.1 kB / 455.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.07683, allocations: 207.3 kB / 456 MB, free: 5.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.07684, allocations: 0 / 456 MB, free: 5.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.07685, allocations: 7.938 kB / 456 MB, free: 5.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.07686, allocations: 4 kB / 456 MB, free: 5.238 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006686/0.07754, allocations: 0.5102 MB / 456.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.07758, allocations: 12.03 kB / 456.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.07763, allocations: 50.73 kB / 456.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.07771, allocations: 28.56 kB / 456.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.07796, allocations: 262.8 kB / 456.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.07798, allocations: 12.38 kB / 456.9 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.07802, allocations: 20.38 kB / 456.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.07831, allocations: 183.1 kB / 457.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.07833, allocations: 0 / 457.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.07835, allocations: 8 kB / 457.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.07836, allocations: 0 / 457.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.07862, allocations: 135.6 kB / 457.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000801/0.07943, allocations: 0.6658 MB / 457.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.07967, allocations: 142.5 kB / 458 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.07981, allocations: 80.83 kB / 458.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.07983, allocations: 0 / 458.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.07986, allocations: 38.56 kB / 458.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 8.91e-07/0.07987, allocations: 0 / 458.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009333/0.08081, allocations: 0.5633 MB / 458.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.08085, allocations: 59.34 kB / 458.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.08105, allocations: 237 kB / 459 MB, free: 2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.08108, allocations: 29.7 kB / 459 MB, free: 1.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.08116, allocations: 148.3 kB / 459.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.08122, allocations: 67.02 kB / 459.2 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.08125, allocations: 25.7 kB / 459.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.08136, allocations: 334.8 kB / 459.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.08148, allocations: 59.91 kB / 459.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.08162, allocations: 81.69 kB / 459.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.08186, allocations: 137.5 kB / 459.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.08187, allocations: 0 / 459.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003248/0.0822, allocations: 213.4 kB / 460 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.08222, allocations: 4 kB / 460 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.08223, allocations: 0 / 460 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.08224, allocations: 4 kB / 460 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.08258, allocations: 67.89 kB / 460.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008721/0.08346, allocations: 1.35 MB / 461.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.0836, allocations: 12.17 kB / 461.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.08362, allocations: 8 kB / 461.5 MB, free: 15.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.0001023/0.08373, allocations: 133.8 kB / 461.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.37e-05/0.08378, allocations: 23.66 kB / 461.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003197/0.0841, allocations: 193.7 kB / 461.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.08411, allocations: 0 / 461.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.08412, allocations: 3.938 kB / 461.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.08413, allocations: 0 / 461.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.08475, allocations: 0.5413 MB / 462.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.08476, allocations: 4 kB / 462.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.08496, allocations: 39.98 kB / 462.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.08498, allocations: 7.875 kB / 462.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.08499, allocations: 8 kB / 462.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.085, allocations: 0 / 462.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.08501, allocations: 0 / 462.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.08545, allocations: 355.4 kB / 462.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.08554, allocations: 112.8 kB / 462.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.08557, allocations: 7.938 kB / 462.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.08571, allocations: 15.98 kB / 462.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.08576, allocations: 11.98 kB / 462.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.08577, allocations: 4 kB / 462.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001282/0.0859, allocations: 172.5 kB / 463.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08591, allocations: 0 / 463.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.08616, allocations: 40 kB / 463.1 MB, free: 13.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0006537/0.08682, allocations: 0.8878 MB / 464 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004506/0.08728, allocations: 187.8 kB / 464.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.0873, allocations: 0 / 464.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.08743, allocations: 75.91 kB / 464.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.08778, allocations: 44.39 kB / 464.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.09058, allocations: 2.747 MB / 467.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.09085, allocations: 0.7521 MB / 467.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.762e-05/0.09094, allocations: 25.52 kB / 467.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.09106, allocations: 83.41 kB / 467.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09107, allocations: 0 / 467.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.1043, allocations: 4.499 MB / 472.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.1046, allocations: 202.3 kB / 472.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/1.654, allocations: 0 / 472.6 MB, free: 3.852 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)