Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.001168/0.001168, allocations: 104.8 kB / 17.05 MB, free: 6.023 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.001176/0.001176, allocations: 196 kB / 18 MB, free: 5.105 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.367/1.367, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2604/0.2604, 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.001549/0.001549, allocations: 71.91 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1038, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003618/0.1075, allocations: 2.65 MB / 0.4998 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1089, allocations: 0.7487 MB / 0.5006 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.1091, allocations: 7.938 kB / 0.5006 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1093, allocations: 47.45 kB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003321/0.1096, allocations: 123 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.1098, allocations: 79.89 kB / 0.5008 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004203/0.1103, allocations: 394.2 kB / 0.5012 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1105, allocations: 93.77 kB / 0.5013 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.1107, allocations: 159.3 kB / 0.5014 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.1109, allocations: 167.1 kB / 0.5016 GB, free: 9.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.482e-05/0.111, allocations: 24 kB / 0.5016 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.966e-05/0.1111, allocations: 28 kB / 0.5016 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.1111, allocations: 63.75 kB / 0.5017 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.1113, allocations: 175 kB / 0.5019 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.1116, allocations: 314.8 kB / 0.5022 GB, free: 8.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1117, allocations: 7.938 kB / 0.5022 GB, free: 8.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1117, allocations: 0 / 0.5022 GB, free: 8.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1117, allocations: 0 / 0.5022 GB, free: 8.707 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001032/0.1127, allocations: 0.6698 MB / 0.5028 GB, free: 7.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1128, allocations: 11.89 kB / 0.5028 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.71e-05/0.1128, allocations: 58.72 kB / 0.5029 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.1129, allocations: 40.47 kB / 0.5029 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.1134, allocations: 320 kB / 0.5032 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.1134, allocations: 16.75 kB / 0.5032 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.441e-05/0.1134, allocations: 28.38 kB / 0.5033 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.1139, allocations: 246.8 kB / 0.5035 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1139, allocations: 4 kB / 0.5035 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.1139, allocations: 4 kB / 0.5035 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1139, allocations: 8 kB / 0.5035 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003809/0.1143, allocations: 177.6 kB / 0.5037 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1155, allocations: 0.8594 MB / 0.5045 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.1158, allocations: 194.5 kB / 0.5047 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.116, allocations: 108.8 kB / 0.5048 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.116, allocations: 3.938 kB / 0.5048 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.1161, allocations: 34.56 kB / 0.5049 GB, free: 5.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.1161, allocations: 0 / 0.5049 GB, free: 5.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001357/0.1174, allocations: 0.7362 MB / 0.5056 GB, free: 4.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1175, allocations: 55.41 kB / 0.5056 GB, free: 4.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.1178, allocations: 300.5 kB / 0.5059 GB, free: 4.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.1178, allocations: 33.7 kB / 0.506 GB, free: 4.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.1179, allocations: 184.6 kB / 0.5061 GB, free: 4.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.118, allocations: 102.5 kB / 0.5062 GB, free: 4.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.1181, allocations: 45.7 kB / 0.5063 GB, free: 4.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1182, allocations: 346.8 kB / 0.5066 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.1184, allocations: 71.95 kB / 0.5067 GB, free: 3.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.1186, allocations: 114.8 kB / 0.5068 GB, free: 3.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.119, allocations: 188.2 kB / 0.507 GB, free: 3.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.119, allocations: 0 / 0.507 GB, free: 3.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006344/0.1196, allocations: 322.9 kB / 0.5073 GB, free: 3.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1196, allocations: 8 kB / 0.5073 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1197, allocations: 0 / 0.5073 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.1199, allocations: 56.81 kB / 0.5073 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.1203, allocations: 79.95 kB / 0.5074 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/0.1226, allocations: 3.02 MB / 0.5104 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1228, allocations: 27.77 kB / 0.5104 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.1229, allocations: 8 kB / 0.5104 GB, free: 15.68 MB / 414.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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001371/0.123, allocations: 145.8 kB / 0.5105 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/0.1231, allocations: 31.62 kB / 0.5106 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004648/0.1235, allocations: 253.3 kB / 0.5108 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1236, allocations: 4 kB / 0.5108 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.1236, allocations: 192 / 0.5108 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1236, allocations: 11.86 kB / 0.5108 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009054/0.1245, allocations: 0.6628 MB / 0.5115 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1245, allocations: 3.938 kB / 0.5115 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.1248, allocations: 71.89 kB / 0.5115 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.1249, allocations: 7.938 kB / 0.5115 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.1249, allocations: 7.938 kB / 0.5115 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1249, allocations: 0 / 0.5115 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1249, allocations: 4 kB / 0.5116 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006484/0.1255, allocations: 448.4 kB / 0.512 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.1257, allocations: 124.8 kB / 0.5121 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.1257, allocations: 11.94 kB / 0.5121 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.1259, allocations: 8 kB / 0.5121 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.126, allocations: 15.97 kB / 0.5121 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.126, allocations: 12 kB / 0.5121 GB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.1262, allocations: 219.1 kB / 0.5124 GB, free: 13.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1262, allocations: 0 / 0.5124 GB, free: 13.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1265, allocations: 68 kB / 0.5124 GB, free: 13.49 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.0009039/0.1274, allocations: 0.9774 MB / 0.5134 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008132/0.1283, allocations: 366.6 kB / 0.5137 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1283, allocations: 0 / 0.5137 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.1285, allocations: 107.8 kB / 0.5138 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.1289, allocations: 53.06 kB / 0.5139 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004292/0.1332, allocations: 3.364 MB / 0.5172 GB, free: 8.504 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1336, allocations: 0.7954 MB / 0.5179 GB, free: 7.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.1337, allocations: 34.89 kB / 0.518 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1339, allocations: 119.4 kB / 0.5181 GB, free: 7.523 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1339, allocations: 0 / 0.5181 GB, free: 7.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.1636, allocations: 7.141 MB / 0.5251 GB, free: 332 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.832/9.996, allocations: 4 kB / 0.5251 GB, free: 328 kB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)