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.001154/0.001154, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001958/0.001958, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.287/1.287, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2769/0.2769, allocations: 48.84 MB / 319.9 MB, free: 11.09 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.001714/0.001714, allocations: 67.14 kB / 390.2 MB, free: 48.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.1002, allocations: 59.17 MB / 449.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.004131/0.1043, allocations: 2.272 MB / 451.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1057, allocations: 0.667 MB / 452.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.106, allocations: 0 / 452.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.1061, allocations: 31.66 kB / 452.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.1064, allocations: 79.28 kB / 452.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.1067, allocations: 59.91 kB / 452.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.1071, allocations: 274.7 kB / 452.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1073, allocations: 68.7 kB / 452.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.1074, allocations: 99.58 kB / 452.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1076, allocations: 119.3 kB / 453 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.1077, allocations: 20 kB / 453 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.693e-05/0.1078, allocations: 24 kB / 453 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.1078, allocations: 39.84 kB / 453.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1079, allocations: 127.2 kB / 453.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.1082, allocations: 219.4 kB / 453.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1083, allocations: 0 / 453.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1083, allocations: 0 / 453.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.1083, allocations: 0 / 453.4 MB, free: 5.551 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.0009928/0.1093, allocations: 0.5567 MB / 454 MB, free: 4.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.1093, allocations: 15.89 kB / 454 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.079e-05/0.1094, allocations: 46.73 kB / 454 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.1095, allocations: 32.56 kB / 454.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.1099, allocations: 258.8 kB / 454.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.1099, allocations: 12.38 kB / 454.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.1099, allocations: 16.38 kB / 454.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003689/0.1103, allocations: 183.1 kB / 454.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1103, allocations: 0 / 454.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1104, allocations: 8 kB / 454.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.1104, allocations: 4 kB / 454.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002939/0.1107, allocations: 111.9 kB / 454.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.1117, allocations: 0.6617 MB / 455.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.112, allocations: 138.5 kB / 455.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1122, allocations: 72.83 kB / 455.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.1122, allocations: 7.938 kB / 455.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.1122, allocations: 34.55 kB / 455.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.1122, allocations: 0 / 455.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001168/0.1134, allocations: 0.5477 MB / 456.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.1135, allocations: 55.41 kB / 456.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.1138, allocations: 233 kB / 456.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1138, allocations: 29.7 kB / 456.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1139, allocations: 152.2 kB / 456.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.114, allocations: 67 kB / 456.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.791e-05/0.1141, allocations: 41.66 kB / 456.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1143, allocations: 342.8 kB / 457 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1144, allocations: 47.97 kB / 457.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.1146, allocations: 73.67 kB / 457.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/0.1149, allocations: 137.5 kB / 457.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1149, allocations: 0 / 457.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003801/0.1153, allocations: 193.5 kB / 457.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1153, allocations: 8 kB / 457.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.1153, allocations: 0 / 457.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.1153, allocations: 0 / 457.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.1158, allocations: 71.89 kB / 457.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.117, allocations: 1.437 MB / 459 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1171, allocations: 12 kB / 459 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.1172, allocations: 7.984 kB / 459 MB, free: 15.54 MB / 350.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.0001186/0.1173, allocations: 133.8 kB / 459.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.292e-05/0.1174, allocations: 23.72 kB / 459.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.1177, allocations: 187.7 kB / 459.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1178, allocations: 4 kB / 459.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1178, allocations: 0 / 459.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1178, allocations: 0 / 459.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00079/0.1186, allocations: 0.5269 MB / 459.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1186, allocations: 0 / 459.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.1188, allocations: 51.89 kB / 459.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.1188, allocations: 7.938 kB / 459.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.1189, allocations: 4 kB / 459.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1189, allocations: 0 / 459.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1189, allocations: 0 / 459.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005172/0.1194, allocations: 344.2 kB / 460.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1195, allocations: 112.8 kB / 460.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.1196, allocations: 8 kB / 460.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1197, allocations: 4 kB / 460.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.1198, allocations: 15.97 kB / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1198, allocations: 4 kB / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001652/0.12, allocations: 172.5 kB / 460.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.12, allocations: 0 / 460.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1203, allocations: 43.94 kB / 460.6 MB, free: 13.81 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.0008254/0.1211, allocations: 0.8803 MB / 461.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006167/0.1217, allocations: 175.9 kB / 461.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1218, allocations: 0 / 461.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.1219, allocations: 75.89 kB / 461.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.1223, allocations: 32.41 kB / 461.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.1257, allocations: 2.573 MB / 464.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.126, allocations: 0.756 MB / 465.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1262, allocations: 25.52 kB / 465.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1263, allocations: 79.36 kB / 465.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1263, allocations: 0 / 465.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.1512, allocations: 4.858 MB / 470.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.45/8.601, allocations: 12.06 kB / 470.1 MB, free: 4.16 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)