Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.001147/0.001147, allocations: 97.39 kB / 16.94 MB, free: 5.824 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.001121/0.001121, allocations: 187.3 kB / 17.87 MB, free: 5.16 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.193/1.193, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2425/0.2425, 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.001262/0.001262, allocations: 68.11 kB / 390.2 MB, free: 48.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.09355, allocations: 59.15 MB / 449.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003856/0.09746, allocations: 2.291 MB / 451.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.0987, allocations: 0.6436 MB / 452.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.09884, allocations: 7.938 kB / 452.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.09902, allocations: 31.66 kB / 452.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002368/0.09926, allocations: 87.27 kB / 452.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001631/0.09943, allocations: 63.91 kB / 452.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.09974, allocations: 278.8 kB / 452.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.09994, allocations: 81.52 kB / 452.9 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.1001, allocations: 107.6 kB / 453 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.1003, allocations: 119.4 kB / 453.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.1003, allocations: 20 kB / 453.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.999e-05/0.1004, allocations: 24 kB / 453.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.786e-05/0.1005, allocations: 47.77 kB / 453.2 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1006, allocations: 115.3 kB / 453.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.1008, allocations: 235.1 kB / 453.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1008, allocations: 0 / 453.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1008, allocations: 3.938 kB / 453.5 MB, free: 5.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1009, allocations: 0 / 453.5 MB, free: 5.488 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008604/0.1017, allocations: 0.5734 MB / 454.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1018, allocations: 11.89 kB / 454.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.71e-05/0.1018, allocations: 46.73 kB / 454.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.187e-05/0.1019, allocations: 32.56 kB / 454.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.1022, allocations: 270.7 kB / 454.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.986e-05/0.1023, allocations: 42.27 kB / 454.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.1024, allocations: 24.03 kB / 454.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.1027, allocations: 175.1 kB / 454.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1027, allocations: 3.938 kB / 454.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.1027, allocations: 8 kB / 454.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1027, allocations: 4 kB / 454.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.103, allocations: 131.8 kB / 454.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009322/0.104, allocations: 0.6618 MB / 455.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.1043, allocations: 150.5 kB / 455.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.1045, allocations: 76.83 kB / 455.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.1045, allocations: 4 kB / 455.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.1045, allocations: 30.56 kB / 455.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.223e-06/0.1045, allocations: 0 / 455.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001076/0.1056, allocations: 0.5762 MB / 456.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.1057, allocations: 59.34 kB / 456.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.1059, allocations: 240.9 kB / 456.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.1059, allocations: 29.7 kB / 456.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.238e-05/0.106, allocations: 152.3 kB / 456.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.616e-05/0.1061, allocations: 67 kB / 456.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.699e-05/0.1061, allocations: 45.7 kB / 456.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1063, allocations: 338.7 kB / 457.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1064, allocations: 55.97 kB / 457.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.1065, allocations: 81.61 kB / 457.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.1068, allocations: 145.5 kB / 457.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1068, allocations: 8 kB / 457.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004022/0.1072, allocations: 201.2 kB / 457.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1073, allocations: 8 kB / 457.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1073, allocations: 3.984 kB / 457.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1073, allocations: 4.031 kB / 457.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.1077, allocations: 79.89 kB / 457.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1077, allocations: 4 kB / 457.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.1078, allocations: 4 kB / 457.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.1078, allocations: 8 kB / 457.8 MB, free: 0.8789 MB / 334.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 0.0001144/0.1079, allocations: 138.4 kB / 458 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.108, allocations: 27.72 kB / 458 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.441e-05/0.1081, allocations: 26.19 kB / 458 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1081, allocations: 4 kB / 458 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1081, allocations: 0 / 458 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1081, allocations: 7.922 kB / 458 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000685/0.1088, allocations: 0.5347 MB / 458.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1088, allocations: 0 / 458.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.1091, allocations: 63.91 kB / 458.6 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.1091, allocations: 4 kB / 458.6 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.1092, allocations: 4 kB / 458.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/0.1092, allocations: 7.922 kB / 458.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1092, allocations: 0 / 458.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000523/0.1097, allocations: 355.4 kB / 459 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.1098, allocations: 108.8 kB / 459.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.1099, allocations: 4 kB / 459.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.11, allocations: 7.938 kB / 459.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/0.1101, allocations: 19.97 kB / 459.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.1101, allocations: 4 kB / 459.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1102, allocations: 172.5 kB / 459.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1102, allocations: 0 / 459.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1105, allocations: 40 kB / 459.3 MB, free: 15.27 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: 1 (BreakerCommand.y) * 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.0007517/0.1113, allocations: 0.8918 MB / 460.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.1116, allocations: 155.7 kB / 460.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1116, allocations: 0 / 460.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.1117, allocations: 79.91 kB / 460.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.1122, allocations: 40.53 kB / 460.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.1152, allocations: 2.617 MB / 463.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.1155, allocations: 0.7478 MB / 463.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.1156, allocations: 25.94 kB / 463.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.1157, allocations: 71.42 kB / 464 MB, free: 10.51 MB / 350.1 MB Notification: Performance of SimCode: time 1.964e-06/0.1157, allocations: 0 / 464 MB, free: 10.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.1385, allocations: 4.437 MB / 468.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.503/5.641, allocations: 5.891 kB / 468.4 MB, free: 6.008 MB / 350.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)