Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001371/0.001371, allocations: 101.3 kB / 17.06 MB, free: 6.012 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.001337/0.001337, allocations: 191 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.313/1.313, 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.2506/0.2506, allocations: 48.84 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.001419/0.001419, allocations: 63.91 kB / 450 MB, free: 9.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09545, allocations: 59.17 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.002903/0.09839, allocations: 2.063 MB / 0.4993 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009429/0.09936, allocations: 0.6047 MB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.258e-05/0.09947, allocations: 3.938 kB / 0.4999 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.09959, allocations: 27.72 kB / 0.4999 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.09981, allocations: 59.48 kB / 0.4999 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001352/0.09995, allocations: 47.94 kB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.1002, allocations: 211 kB / 0.5002 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.1003, allocations: 40.27 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1005, allocations: 87.58 kB / 0.5003 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.1006, allocations: 83.56 kB / 0.5004 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.1006, allocations: 16 kB / 0.5004 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.643e-05/0.1007, allocations: 16 kB / 0.5004 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.1007, allocations: 31.84 kB / 0.5004 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.326e-05/0.1008, allocations: 91.47 kB / 0.5005 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.1011, allocations: 167.2 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1011, allocations: 4 kB / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1011, allocations: 0 / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1011, allocations: 0 / 0.5007 GB, free: 10.22 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007143/0.1018, allocations: 0.4905 MB / 0.5012 GB, free: 9.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.1019, allocations: 15.89 kB / 0.5012 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.234e-05/0.1019, allocations: 46.73 kB / 0.5012 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.102, allocations: 20.8 kB / 0.5013 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.1023, allocations: 252.9 kB / 0.5015 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.1023, allocations: 8.375 kB / 0.5015 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.1024, allocations: 12.38 kB / 0.5015 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.1026, allocations: 136.3 kB / 0.5016 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1026, allocations: 0 / 0.5016 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1027, allocations: 4 kB / 0.5016 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1027, allocations: 4 kB / 0.5017 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.1029, allocations: 87.81 kB / 0.5017 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.1036, allocations: 0.5529 MB / 0.5023 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.1038, allocations: 106.5 kB / 0.5024 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.1039, allocations: 48.83 kB / 0.5024 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.104, allocations: 4 kB / 0.5024 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.104, allocations: 38.5 kB / 0.5025 GB, free: 8.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.104, allocations: 0 / 0.5025 GB, free: 8.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007696/0.1048, allocations: 442.1 kB / 0.5029 GB, free: 7.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.1048, allocations: 51.41 kB / 0.5029 GB, free: 7.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.105, allocations: 225 kB / 0.5031 GB, free: 7.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.1051, allocations: 29.7 kB / 0.5032 GB, free: 7.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.89e-05/0.1051, allocations: 132.3 kB / 0.5033 GB, free: 7.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.1052, allocations: 39.64 kB / 0.5033 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.1052, allocations: 37.7 kB / 0.5034 GB, free: 7.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1054, allocations: 326.8 kB / 0.5037 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.437e-05/0.1054, allocations: 27.98 kB / 0.5037 GB, free: 6.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.512e-05/0.1055, allocations: 58.55 kB / 0.5038 GB, free: 6.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.1057, allocations: 98.44 kB / 0.5039 GB, free: 6.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1057, allocations: 0 / 0.5039 GB, free: 6.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000264/0.106, allocations: 153.4 kB / 0.504 GB, free: 6.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.106, allocations: 7.906 kB / 0.504 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.106, allocations: 0 / 0.504 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.106, allocations: 4 kB / 0.504 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1062, allocations: 39.98 kB / 0.5041 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1062, allocations: 0 / 0.5041 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.863e-05/0.1063, allocations: 7.938 kB / 0.5041 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.1063, allocations: 8 kB / 0.5041 GB, free: 6.445 MB / 398.1 MB 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 (16): * Single equations (assignments): 16 * 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 8.811e-05/0.1064, allocations: 125.8 kB / 0.5042 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.1065, allocations: 27.8 kB / 0.5042 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.1065, allocations: 17.72 kB / 0.5042 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1065, allocations: 0 / 0.5042 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1065, allocations: 4 kB / 0.5042 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1065, allocations: 3.984 kB / 0.5042 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005089/0.1071, allocations: 451.1 kB / 0.5047 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1071, allocations: 0 / 0.5047 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.1072, allocations: 27.98 kB / 0.5047 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.1072, allocations: 0 / 0.5047 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.1073, allocations: 4 kB / 0.5047 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1073, allocations: 0 / 0.5047 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1073, allocations: 0 / 0.5047 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.1076, allocations: 271.3 kB / 0.505 GB, free: 5.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-05/0.1077, allocations: 101 kB / 0.5051 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.1077, allocations: 4 kB / 0.5051 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.1078, allocations: 7.984 kB / 0.5051 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.1079, allocations: 4 kB / 0.5051 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1079, allocations: 7.922 kB / 0.5051 GB, free: 5.305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.108, allocations: 168.5 kB / 0.5052 GB, free: 5.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.108, allocations: 0 / 0.5052 GB, free: 5.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1083, allocations: 35.94 kB / 0.5053 GB, free: 5.105 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 (12): * Single equations (assignments): 12 * 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.0005554/0.1089, allocations: 0.7903 MB / 0.5061 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.1091, allocations: 95.88 kB / 0.5061 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1091, allocations: 0 / 0.5061 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.247e-05/0.1092, allocations: 39.92 kB / 0.5062 GB, free: 4.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.1096, allocations: 32.66 kB / 0.5062 GB, free: 4.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.1122, allocations: 2.279 MB / 0.5084 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.1125, allocations: 0.7202 MB / 0.5091 GB, free: 1.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.409e-05/0.1125, allocations: 25.53 kB / 0.5092 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.1126, allocations: 51.42 kB / 0.5092 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1126, allocations: 0 / 0.5092 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.1331, allocations: 3.727 MB / 0.5129 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/7.967, allocations: 3.938 kB / 0.5129 GB, free: 13.15 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)