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.001211/0.001211, 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.001141/0.001141, 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.348/1.348, 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.2647/0.2647, 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.001433/0.001433, allocations: 79.88 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1206, allocations: 59.15 MB / 0.4972 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003747/0.1244, allocations: 2.288 MB / 0.4995 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1257, allocations: 0.6553 MB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.1259, allocations: 7.938 kB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.1261, allocations: 31.66 kB / 0.5002 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003227/0.1265, allocations: 75.33 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.1267, allocations: 59.86 kB / 0.5003 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.1271, allocations: 286.8 kB / 0.5006 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.1273, allocations: 77.53 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.1275, allocations: 119.4 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.1278, allocations: 115.5 kB / 0.5009 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.431e-05/0.1278, allocations: 20 kB / 0.5009 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.854e-05/0.1279, allocations: 20 kB / 0.5009 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.962e-05/0.128, allocations: 55.72 kB / 0.5009 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1281, allocations: 119.3 kB / 0.5011 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.1285, allocations: 235.1 kB / 0.5013 GB, free: 9.621 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1285, allocations: 4 kB / 0.5013 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1285, allocations: 0 / 0.5013 GB, free: 9.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.1285, allocations: 0 / 0.5013 GB, free: 9.617 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001114/0.1296, allocations: 0.5607 MB / 0.5018 GB, free: 9.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1297, allocations: 11.89 kB / 0.5018 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.468e-05/0.1298, allocations: 54.73 kB / 0.5019 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.1299, allocations: 32.5 kB / 0.5019 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.1304, allocations: 270.7 kB / 0.5022 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.844e-05/0.1305, allocations: 38.27 kB / 0.5022 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.1306, allocations: 24.12 kB / 0.5022 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.1309, allocations: 179.1 kB / 0.5024 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.131, allocations: 3.906 kB / 0.5024 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.131, allocations: 8 kB / 0.5024 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.131, allocations: 0 / 0.5024 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.1313, allocations: 127.8 kB / 0.5025 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.1325, allocations: 0.6579 MB / 0.5032 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.1329, allocations: 162.4 kB / 0.5033 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1331, allocations: 80.81 kB / 0.5034 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.1331, allocations: 8 kB / 0.5034 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.1331, allocations: 30.56 kB / 0.5035 GB, free: 7.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.1331, allocations: 0 / 0.5035 GB, free: 7.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00117/0.1343, allocations: 0.5756 MB / 0.504 GB, free: 6.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.1344, allocations: 63.34 kB / 0.5041 GB, free: 6.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.1346, allocations: 237 kB / 0.5043 GB, free: 6.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.1347, allocations: 29.7 kB / 0.5043 GB, free: 6.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1348, allocations: 148.3 kB / 0.5045 GB, free: 6.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.1348, allocations: 67 kB / 0.5045 GB, free: 6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.1349, allocations: 41.7 kB / 0.5046 GB, free: 5.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1351, allocations: 338.8 kB / 0.5049 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.1352, allocations: 59.97 kB / 0.505 GB, free: 5.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1354, allocations: 78.33 kB / 0.505 GB, free: 5.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.1357, allocations: 133.5 kB / 0.5052 GB, free: 5.336 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1357, allocations: 0 / 0.5052 GB, free: 5.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003821/0.1361, allocations: 217.1 kB / 0.5054 GB, free: 5.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1361, allocations: 8 kB / 0.5054 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.1361, allocations: 0 / 0.5054 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1361, allocations: 0 / 0.5054 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.1365, allocations: 75.89 kB / 0.5055 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1366, allocations: 4 kB / 0.5055 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.1367, allocations: 12.03 kB / 0.5055 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1367, allocations: 4 kB / 0.5055 GB, free: 5.016 MB / 398.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.0001399/0.1369, allocations: 150.1 kB / 0.5056 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.1369, allocations: 23.72 kB / 0.5056 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.572e-05/0.137, allocations: 22.19 kB / 0.5057 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.137, allocations: 8 kB / 0.5057 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.137, allocations: 3.984 kB / 0.5057 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.137, allocations: 0 / 0.5057 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000803/0.1378, allocations: 0.5413 MB / 0.5062 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1379, allocations: 0 / 0.5062 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.1382, allocations: 63.91 kB / 0.5063 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.1383, allocations: 7.938 kB / 0.5063 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.1383, allocations: 3.984 kB / 0.5063 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1383, allocations: 3.938 kB / 0.5063 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1383, allocations: 0 / 0.5063 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.1388, allocations: 355.4 kB / 0.5066 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.139, allocations: 116.8 kB / 0.5067 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.139, allocations: 0 / 0.5067 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.1392, allocations: 11.94 kB / 0.5067 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/0.1392, allocations: 19.97 kB / 0.5068 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.1392, allocations: 4 kB / 0.5068 GB, free: 3.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001534/0.1394, allocations: 172.5 kB / 0.5069 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1394, allocations: 0 / 0.5069 GB, free: 3.426 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.1397, allocations: 44 kB / 0.507 GB, free: 3.383 MB / 398.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.0008146/0.1405, allocations: 0.8801 MB / 0.5078 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003449/0.1409, allocations: 139.9 kB / 0.508 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1409, allocations: 0 / 0.508 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.141, allocations: 75.91 kB / 0.508 GB, free: 2.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.1415, allocations: 44.28 kB / 0.5081 GB, free: 2.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.1448, allocations: 2.61 MB / 0.5106 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1452, allocations: 0.7478 MB / 0.5114 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.781e-05/0.1453, allocations: 25.92 kB / 0.5114 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1454, allocations: 75.41 kB / 0.5114 GB, free: 14.65 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1454, allocations: 0 / 0.5114 GB, free: 14.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.1709, allocations: 4.608 MB / 0.5159 GB, free: 9.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/7.914, allocations: 3.953 kB / 0.516 GB, free: 9.992 MB / 414.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)