Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001139/0.001139, allocations: 106.8 kB / 17.06 MB, free: 6.094 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.00115/0.00115, allocations: 196 kB / 18 MB, free: 5.172 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.371/1.371, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1905/0.1905, allocations: 37.98 MB / 309.2 MB, free: 5.941 MB / 254.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.001648/0.001648, allocations: 71.89 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1056, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006238/0.1119, allocations: 4.926 MB / 491.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003639/0.1155, allocations: 2.532 MB / 494.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003692/0.1159, allocations: 15.94 kB / 494.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1172, allocations: 438.1 kB / 494.5 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.1187, allocations: 0.5096 MB / 495 MB, free: 388 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009812/0.1197, allocations: 287.2 kB / 495.3 MB, free: 100 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001281/0.121, allocations: 0.7321 MB / 496 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006316/0.1216, allocations: 325.6 kB / 496.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006703/0.1223, allocations: 330.7 kB / 496.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000635/0.1229, allocations: 334.8 kB / 497 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.239e-05/0.123, allocations: 36 kB / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.1243, allocations: 0.6274 MB / 497.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002722/0.1246, allocations: 199.5 kB / 497.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004562/0.125, allocations: 242.8 kB / 498.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001543/0.1266, allocations: 0.7556 MB / 498.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1266, allocations: 4 kB / 498.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1266, allocations: 0 / 498.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.1266, allocations: 0 / 498.8 MB, free: 12.54 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00157/0.1282, allocations: 0.7762 MB / 499.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1283, allocations: 11.89 kB / 499.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.1284, allocations: 90.7 kB / 499.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/0.1301, allocations: 200.1 kB / 499.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006147/0.1307, allocations: 374.2 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.1308, allocations: 37.36 kB / 0.4886 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1309, allocations: 40.38 kB / 0.4886 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.132, allocations: 0.6264 MB / 0.4892 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/0.132, allocations: 7.984 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.1321, allocations: 23.92 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.877e-05/0.1321, allocations: 28.98 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000999/0.1331, allocations: 0.6166 MB / 0.4899 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.1366, allocations: 2.238 MB / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006165/0.1372, allocations: 486.6 kB / 0.4926 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.1376, allocations: 241.7 kB / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.1376, allocations: 11.98 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.1377, allocations: 34.56 kB / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 4.379e-06/0.1377, allocations: 0 / 0.4928 GB, free: 6.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.003523/0.1412, allocations: 1.709 MB / 0.4945 GB, free: 4.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.1413, allocations: 85.05 kB / 0.4946 GB, free: 4.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.1416, allocations: 282.9 kB / 0.4948 GB, free: 4.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.1416, allocations: 37.7 kB / 0.4949 GB, free: 4.219 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.1418, allocations: 224 kB / 0.4951 GB, free: 3.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.1419, allocations: 153.8 kB / 0.4952 GB, free: 3.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.142, allocations: 94.27 kB / 0.4953 GB, free: 3.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1422, allocations: 342.8 kB / 0.4957 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1424, allocations: 181 kB / 0.4958 GB, free: 3.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.1427, allocations: 286.4 kB / 0.4961 GB, free: 2.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006245/0.1434, allocations: 0.5042 MB / 0.4966 GB, free: 2.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1434, allocations: 4 kB / 0.4966 GB, free: 2.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001158/0.1445, allocations: 0.6849 MB / 0.4973 GB, free: 1.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1446, allocations: 7.938 kB / 0.4973 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1446, allocations: 4 kB / 0.4973 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005861/0.1452, allocations: 172.7 kB / 0.4974 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.1456, allocations: 92.02 kB / 0.4975 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.1491, allocations: 2.786 MB / 0.5003 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.1495, allocations: 23.98 kB / 0.5003 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/0.1496, allocations: 28.03 kB / 0.5003 GB, free: 14.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002674/0.1498, allocations: 193.7 kB / 0.5005 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.25e-05/0.1499, allocations: 39.56 kB / 0.5005 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.1511, allocations: 0.6373 MB / 0.5012 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.1511, allocations: 12.08 kB / 0.5012 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1511, allocations: 3.938 kB / 0.5012 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1511, allocations: 3.984 kB / 0.5012 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002066/0.1532, allocations: 1.352 MB / 0.5025 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.1532, allocations: 3.984 kB / 0.5025 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003447/0.1536, allocations: 75.91 kB / 0.5026 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004416/0.154, allocations: 144.8 kB / 0.5027 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/0.1541, allocations: 12 kB / 0.5027 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/0.1569, allocations: 2.56 MB / 0.5052 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1569, allocations: 4.031 kB / 0.5052 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.1583, allocations: 0.9537 MB / 0.5062 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.1584, allocations: 112.7 kB / 0.5063 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.1585, allocations: 15.94 kB / 0.5063 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.1587, allocations: 11.98 kB / 0.5063 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.1588, allocations: 31.95 kB / 0.5063 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/0.1588, allocations: 20 kB / 0.5063 GB, free: 7.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.159, allocations: 201.9 kB / 0.5065 GB, free: 7.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.159, allocations: 0 / 0.5065 GB, free: 7.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.1596, allocations: 140 kB / 0.5067 GB, free: 7.598 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00161/0.1612, allocations: 1.49 MB / 0.5081 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.1625, allocations: 0.6772 MB / 0.5088 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1625, allocations: 192 / 0.5088 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006613/0.1632, allocations: 439.8 kB / 0.5092 GB, free: 4.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.1637, allocations: 72.73 kB / 0.5093 GB, free: 4.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005872/0.1696, allocations: 4.462 MB / 0.5136 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.1701, allocations: 0.8707 MB / 0.5145 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001955/0.1703, allocations: 67.23 kB / 0.5145 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.1705, allocations: 151.4 kB / 0.5147 GB, free: 15.1 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1705, allocations: 0 / 0.5147 GB, free: 15.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0327/0.2032, allocations: 10.05 MB / 0.5245 GB, free: 4.992 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.36, allocations: 19.86 kB / 0.5245 GB, free: 4.973 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)