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.001433/0.001433, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001532/0.001533, allocations: 195 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.35/1.35, 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.2835/0.2835, 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.001532/0.001532, allocations: 76.27 kB / 450 MB, free: 9.094 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1095, allocations: 59.16 MB / 0.4972 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003774/0.1133, allocations: 2.07 MB / 0.4993 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1146, allocations: 0.6008 MB / 0.4998 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.1148, allocations: 7.938 kB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.1149, allocations: 27.67 kB / 0.4999 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.1153, allocations: 63.48 kB / 0.4999 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.1155, allocations: 43.94 kB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.1158, allocations: 207.1 kB / 0.5002 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.116, allocations: 44.5 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.1162, allocations: 83.58 kB / 0.5003 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1164, allocations: 87.56 kB / 0.5004 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.1164, allocations: 12 kB / 0.5004 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.104e-05/0.1165, allocations: 16 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.137e-05/0.1165, allocations: 31.84 kB / 0.5004 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.1167, allocations: 95.45 kB / 0.5005 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.1169, allocations: 159.4 kB / 0.5007 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1169, allocations: 0 / 0.5007 GB, free: 10.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1169, allocations: 0 / 0.5007 GB, free: 10.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.117, allocations: 0 / 0.5007 GB, free: 10.24 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.0009169/0.1179, allocations: 0.4907 MB / 0.5012 GB, free: 9.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1179, allocations: 11.89 kB / 0.5012 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.439e-05/0.118, allocations: 42.73 kB / 0.5012 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.358e-05/0.1181, allocations: 20.66 kB / 0.5012 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004482/0.1185, allocations: 252.7 kB / 0.5015 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1186, allocations: 8.375 kB / 0.5015 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.1186, allocations: 20.36 kB / 0.5015 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.1189, allocations: 132.1 kB / 0.5016 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1189, allocations: 0 / 0.5016 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.1189, allocations: 4 kB / 0.5016 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1189, allocations: 4 kB / 0.5016 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.1191, allocations: 83.81 kB / 0.5017 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.1199, allocations: 0.5527 MB / 0.5023 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.1202, allocations: 106.5 kB / 0.5024 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.464e-05/0.1204, allocations: 44.84 kB / 0.5024 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.1204, allocations: 0 / 0.5024 GB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1204, allocations: 42.5 kB / 0.5024 GB, free: 8.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 9.52e-07/0.1204, allocations: 0 / 0.5024 GB, free: 8.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008805/0.1213, allocations: 445.7 kB / 0.5029 GB, free: 7.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1213, allocations: 51.41 kB / 0.5029 GB, free: 7.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1216, allocations: 221 kB / 0.5031 GB, free: 7.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1216, allocations: 25.7 kB / 0.5031 GB, free: 7.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.39e-05/0.1217, allocations: 132.3 kB / 0.5033 GB, free: 7.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.1217, allocations: 51.28 kB / 0.5033 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.044e-05/0.1218, allocations: 25.72 kB / 0.5033 GB, free: 7.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1219, allocations: 330.8 kB / 0.5037 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.136e-05/0.122, allocations: 31.98 kB / 0.5037 GB, free: 6.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.811e-05/0.1221, allocations: 62.48 kB / 0.5038 GB, free: 6.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.1223, allocations: 94.5 kB / 0.5038 GB, free: 6.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1223, allocations: 0 / 0.5038 GB, free: 6.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002436/0.1226, allocations: 145.3 kB / 0.504 GB, free: 6.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1226, allocations: 7.906 kB / 0.504 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1226, allocations: 4 kB / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1226, allocations: 0 / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.1228, allocations: 47.97 kB / 0.504 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.1228, allocations: 0 / 0.504 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1229, allocations: 4 kB / 0.504 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.1229, allocations: 4 kB / 0.504 GB, free: 6.477 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 9.843e-05/0.123, allocations: 125.8 kB / 0.5042 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.1231, allocations: 19.75 kB / 0.5042 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.491e-05/0.1231, allocations: 21.7 kB / 0.5042 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1232, allocations: 0 / 0.5042 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1232, allocations: 8 kB / 0.5042 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1232, allocations: 0 / 0.5042 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.1237, allocations: 455.1 kB / 0.5046 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1238, allocations: 0 / 0.5046 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.1239, allocations: 27.98 kB / 0.5047 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1239, allocations: 0 / 0.5047 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.1239, allocations: 4 kB / 0.5047 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.124, allocations: 4 kB / 0.5047 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.124, allocations: 3.938 kB / 0.5047 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003535/0.1243, allocations: 263.2 kB / 0.5049 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.853e-05/0.1244, allocations: 101 kB / 0.505 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.1245, allocations: 0 / 0.505 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.1246, allocations: 12.03 kB / 0.505 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.1246, allocations: 11.97 kB / 0.5051 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.1247, allocations: 0 / 0.5051 GB, free: 5.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001618/0.1248, allocations: 176.5 kB / 0.5052 GB, free: 5.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1248, allocations: 0 / 0.5052 GB, free: 5.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1251, allocations: 35.94 kB / 0.5053 GB, free: 5.129 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.0006632/0.1258, allocations: 0.7824 MB / 0.506 GB, free: 4.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002274/0.126, allocations: 91.89 kB / 0.5061 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.126, allocations: 0 / 0.5061 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.502e-05/0.1261, allocations: 47.92 kB / 0.5062 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003937/0.1265, allocations: 32.95 kB / 0.5062 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.1294, allocations: 2.268 MB / 0.5084 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.1298, allocations: 0.7241 MB / 0.5091 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.008e-05/0.1299, allocations: 17.55 kB / 0.5091 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.066e-05/0.13, allocations: 51.42 kB / 0.5092 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.13, allocations: 0 / 0.5092 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.1529, allocations: 3.676 MB / 0.5128 GB, free: 13.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/7.891, allocations: 11.94 kB / 0.5128 GB, free: 13.24 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)