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.0009233/0.0009233, allocations: 109 kB / 16.51 MB, free: 6.707 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.0009115/0.0009115, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.126/1.126, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2299/0.2299, allocations: 48.84 MB / 319.5 MB, free: 11.3 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.001245/0.001245, allocations: 68.39 kB / 389.5 MB, free: 49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0717/0.07295, allocations: 59.16 MB / 448.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.002924/0.07591, allocations: 2.449 MB / 451.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008517/0.07677, allocations: 0.667 MB / 451.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.512e-05/0.07688, allocations: 8 kB / 451.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.07699, allocations: 19.78 kB / 451.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.07719, allocations: 79.41 kB / 451.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001191/0.07731, allocations: 51.94 kB / 451.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000218/0.07754, allocations: 262.7 kB / 452.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.07767, allocations: 56.7 kB / 452.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.07779, allocations: 99.56 kB / 452.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.07793, allocations: 107.4 kB / 452.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.07797, allocations: 12 kB / 452.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.07803, allocations: 19.94 kB / 452.4 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.07807, allocations: 39.81 kB / 452.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.992e-05/0.07817, allocations: 115.3 kB / 452.6 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.07837, allocations: 215.4 kB / 452.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.07838, allocations: 0 / 452.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.07839, allocations: 4 kB / 452.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.0784, allocations: 0 / 452.8 MB, free: 5.941 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.000728/0.07913, allocations: 0.5568 MB / 453.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.07917, allocations: 8.031 kB / 453.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.801e-05/0.07922, allocations: 50.73 kB / 453.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.914e-05/0.0793, allocations: 32.56 kB / 453.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.07955, allocations: 254.8 kB / 453.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/0.07956, allocations: 12.38 kB / 453.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.0796, allocations: 20.38 kB / 453.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.07989, allocations: 175.1 kB / 453.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.07991, allocations: 8 kB / 453.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.07993, allocations: 4 kB / 453.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.07994, allocations: 4 kB / 453.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.08018, allocations: 119.6 kB / 454 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000792/0.08098, allocations: 0.6541 MB / 454.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002207/0.08121, allocations: 134.5 kB / 454.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.08134, allocations: 80.83 kB / 454.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.08137, allocations: 3.984 kB / 454.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.0814, allocations: 34.56 kB / 454.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.062e-06/0.0814, allocations: 0 / 454.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008999/0.08231, allocations: 0.5514 MB / 455.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.08234, allocations: 51.41 kB / 455.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.08254, allocations: 233 kB / 455.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.08257, allocations: 33.64 kB / 455.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.08264, allocations: 148.3 kB / 455.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.813e-05/0.0827, allocations: 67 kB / 456 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.08276, allocations: 41.7 kB / 456 MB, free: 2.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.08286, allocations: 334.8 kB / 456.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.08298, allocations: 55.97 kB / 456.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.08311, allocations: 73.53 kB / 456.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/0.08333, allocations: 137.4 kB / 456.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.08334, allocations: 0 / 456.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003068/0.08365, allocations: 205.2 kB / 456.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.08367, allocations: 4 kB / 456.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.08368, allocations: 0 / 456.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.08369, allocations: 3.984 kB / 456.8 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.08404, allocations: 63.95 kB / 456.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008712/0.08492, allocations: 1.35 MB / 458.3 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.08506, allocations: 12.03 kB / 458.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.08507, allocations: 4 kB / 458.3 MB, free: 32 kB / 334.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.0001034/0.08518, allocations: 138 kB / 458.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.08524, allocations: 23.72 kB / 458.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.08554, allocations: 181.8 kB / 458.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.08555, allocations: 4 kB / 458.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.08556, allocations: 3.938 kB / 458.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.08557, allocations: 0 / 458.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006168/0.08619, allocations: 0.5257 MB / 459.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.0862, allocations: 3.938 kB / 459.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.08641, allocations: 43.97 kB / 459.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.08642, allocations: 3.938 kB / 459.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.08644, allocations: 4 kB / 459.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.08645, allocations: 0 / 459.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.08645, allocations: 4 kB / 459.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.08688, allocations: 344 kB / 459.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.382e-05/0.08697, allocations: 108.8 kB / 459.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.087, allocations: 11.94 kB / 459.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.08715, allocations: 4 kB / 459.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.08719, allocations: 11.98 kB / 459.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.08721, allocations: 7.984 kB / 459.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.08734, allocations: 172.5 kB / 459.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08735, allocations: 4 kB / 459.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.08761, allocations: 44 kB / 459.9 MB, free: 14.3 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.0006346/0.08825, allocations: 0.8721 MB / 460.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004488/0.08871, allocations: 175.7 kB / 460.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.08872, allocations: 0 / 460.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.08885, allocations: 75.84 kB / 461 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.08919, allocations: 44.64 kB / 461.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.09192, allocations: 2.644 MB / 463.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.09218, allocations: 0.756 MB / 464.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.978e-05/0.09228, allocations: 21.55 kB / 464.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.0924, allocations: 79.41 kB / 464.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.0924, allocations: 3.938 kB / 464.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0129/0.1053, allocations: 4.581 MB / 469.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/0.1055, allocations: 210.8 kB / 469.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/1.655, allocations: 0 / 469.3 MB, free: 4.625 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)