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.001388/0.001388, allocations: 104 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.001544/0.001544, allocations: 196 kB / 18 MB, free: 5.109 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.325/1.325, 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.267/0.267, allocations: 48.85 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.001554/0.001554, allocations: 71.89 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1005, allocations: 59.15 MB / 0.4972 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.00318/0.1037, allocations: 2.078 MB / 0.4993 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1049, allocations: 0.5969 MB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.105, allocations: 7.938 kB / 0.4998 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.1052, allocations: 23.72 kB / 0.4999 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.1054, allocations: 71.42 kB / 0.4999 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001593/0.1056, allocations: 39.95 kB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.1058, allocations: 203.1 kB / 0.5002 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.106, allocations: 52.48 kB / 0.5002 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.1062, allocations: 87.56 kB / 0.5003 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1063, allocations: 87.56 kB / 0.5004 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.412e-05/0.1064, allocations: 12 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.1064, allocations: 16 kB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.1065, allocations: 31.86 kB / 0.5004 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.126e-05/0.1066, allocations: 91.41 kB / 0.5005 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.1068, allocations: 163.4 kB / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1068, allocations: 0 / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1068, allocations: 0 / 0.5007 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.1068, 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.0007523/0.1076, allocations: 0.4907 MB / 0.5012 GB, free: 9.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1076, allocations: 11.89 kB / 0.5012 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.1077, allocations: 46.73 kB / 0.5012 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.179e-05/0.1078, allocations: 24.66 kB / 0.5012 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.1081, allocations: 240.8 kB / 0.5015 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.1081, allocations: 16.31 kB / 0.5015 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.1082, allocations: 12.38 kB / 0.5015 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.1084, allocations: 124.4 kB / 0.5016 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1084, allocations: 0 / 0.5016 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1085, allocations: 8 kB / 0.5016 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1085, allocations: 0 / 0.5016 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.1087, allocations: 87.81 kB / 0.5017 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007988/0.1095, allocations: 0.5605 MB / 0.5023 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.1098, allocations: 102.5 kB / 0.5024 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/0.1099, allocations: 44.84 kB / 0.5024 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.1099, allocations: 4 kB / 0.5024 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.1099, allocations: 38.5 kB / 0.5024 GB, free: 8.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.1099, allocations: 0 / 0.5024 GB, free: 8.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008105/0.1107, allocations: 437.7 kB / 0.5029 GB, free: 7.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.1108, allocations: 51.41 kB / 0.5029 GB, free: 7.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.111, allocations: 233 kB / 0.5031 GB, free: 7.457 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.111, allocations: 25.7 kB / 0.5032 GB, free: 7.426 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.658e-05/0.1111, allocations: 124.4 kB / 0.5033 GB, free: 7.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.1112, allocations: 51.28 kB / 0.5033 GB, free: 7.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.1112, allocations: 29.7 kB / 0.5033 GB, free: 7.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1114, allocations: 326.8 kB / 0.5037 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.401e-05/0.1115, allocations: 35.97 kB / 0.5037 GB, free: 6.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.511e-05/0.1116, allocations: 58.5 kB / 0.5038 GB, free: 6.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.1117, allocations: 90.5 kB / 0.5038 GB, free: 6.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1117, allocations: 4 kB / 0.5038 GB, free: 6.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002517/0.112, allocations: 149.2 kB / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.112, allocations: 11.97 kB / 0.504 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.112, allocations: 4 kB / 0.504 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.112, allocations: 0 / 0.504 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1122, allocations: 35.92 kB / 0.504 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1122, allocations: 7.938 kB / 0.504 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1123, allocations: 4 kB / 0.504 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1124, allocations: 4 kB / 0.504 GB, free: 6.465 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.993e-05/0.1124, allocations: 125.8 kB / 0.5042 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.1125, allocations: 23.75 kB / 0.5042 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.1126, allocations: 25.66 kB / 0.5042 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1126, allocations: 4 kB / 0.5042 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1126, allocations: 3.984 kB / 0.5042 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1126, allocations: 0 / 0.5042 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.1131, allocations: 439.2 kB / 0.5046 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1131, allocations: 0 / 0.5046 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.1133, allocations: 31.92 kB / 0.5047 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.1133, allocations: 0 / 0.5047 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1133, allocations: 8 kB / 0.5047 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1133, allocations: 0 / 0.5047 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1133, allocations: 7.969 kB / 0.5047 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.1137, allocations: 263.2 kB / 0.5049 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.893e-05/0.1138, allocations: 96.95 kB / 0.505 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.1138, allocations: 7.984 kB / 0.505 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.1139, allocations: 0 / 0.505 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.134e-05/0.114, allocations: 19.92 kB / 0.5051 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.114, allocations: 4 kB / 0.5051 GB, free: 5.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000135/0.1141, allocations: 160.5 kB / 0.5052 GB, free: 5.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1141, allocations: 0 / 0.5052 GB, free: 5.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.1144, allocations: 35.94 kB / 0.5052 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.0005858/0.115, allocations: 0.7902 MB / 0.506 GB, free: 4.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002064/0.1152, allocations: 91.88 kB / 0.5061 GB, free: 4.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1152, allocations: 0 / 0.5061 GB, free: 4.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.763e-05/0.1153, allocations: 43.92 kB / 0.5062 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.1157, allocations: 36.97 kB / 0.5062 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.1183, allocations: 2.272 MB / 0.5084 GB, free: 1.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.1186, allocations: 0.728 MB / 0.5091 GB, free: 1.035 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.061e-05/0.1187, allocations: 17.53 kB / 0.5091 GB, free: 1.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.494e-05/0.1188, allocations: 47.42 kB / 0.5092 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1188, allocations: 4 kB / 0.5092 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.1408, allocations: 3.789 MB / 0.5129 GB, free: 13.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/7.758, allocations: 11.94 kB / 0.5129 GB, free: 13.11 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)