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.00111/0.00111, allocations: 104.7 kB / 17.06 MB, free: 5.812 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.001155/0.001155, allocations: 195 kB / 18 MB, free: 4.977 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.381/1.381, 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/PowerSystems 1.0.1/package.mo): time 0.174/0.174, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.00176/0.00176, allocations: 67.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1134, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00623/0.1197, allocations: 4.922 MB / 491.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003418/0.1232, allocations: 2.536 MB / 494.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002973/0.1235, allocations: 11.94 kB / 494.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.1247, allocations: 438.1 kB / 494.5 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.1259, allocations: 0.5096 MB / 495 MB, free: 404 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006515/0.1266, allocations: 275.2 kB / 495.3 MB, free: 128 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009277/0.1275, allocations: 0.7321 MB / 496 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000491/0.128, allocations: 345.5 kB / 496.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.1285, allocations: 318.8 kB / 496.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005046/0.1291, allocations: 326.8 kB / 497 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.1291, allocations: 40 kB / 497 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009943/0.1301, allocations: 0.6312 MB / 497.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.1303, allocations: 199.5 kB / 497.8 MB, free: 13.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.1306, allocations: 250.8 kB / 498.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.1318, allocations: 0.7595 MB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1318, allocations: 0 / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1318, allocations: 0 / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.649e-05/0.1319, allocations: 0 / 498.8 MB, free: 12.55 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.001344/0.1332, allocations: 0.7684 MB / 499.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.1333, allocations: 15.89 kB / 499.6 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.1334, allocations: 82.7 kB / 499.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.1352, allocations: 204.1 kB / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.1358, allocations: 374.2 kB / 0.4886 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.1358, allocations: 29.38 kB / 0.4886 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.1359, allocations: 48.36 kB / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009394/0.1368, allocations: 0.6264 MB / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.1369, allocations: 0 / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.1369, allocations: 23.92 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-05/0.137, allocations: 36.98 kB / 0.4893 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.1382, allocations: 0.6089 MB / 0.4899 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003526/0.1417, allocations: 2.245 MB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006832/0.1424, allocations: 494.5 kB / 0.4926 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.1427, allocations: 237.7 kB / 0.4928 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.087e-05/0.1428, allocations: 4 kB / 0.4928 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1428, allocations: 42.55 kB / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.1428, allocations: 0 / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.003656/0.1465, allocations: 1.712 MB / 0.4945 GB, free: 4.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/0.1466, allocations: 81.11 kB / 0.4946 GB, free: 4.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.147, allocations: 279 kB / 0.4948 GB, free: 4.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.1471, allocations: 33.7 kB / 0.4949 GB, free: 4.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.1473, allocations: 236.1 kB / 0.4951 GB, free: 4.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.1475, allocations: 153.8 kB / 0.4952 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.1477, allocations: 82.25 kB / 0.4953 GB, free: 3.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.1479, allocations: 354.7 kB / 0.4957 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.1482, allocations: 177 kB / 0.4958 GB, free: 3.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/0.1487, allocations: 290.4 kB / 0.4961 GB, free: 2.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008701/0.1496, allocations: 0.4964 MB / 0.4966 GB, free: 2.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.1496, allocations: 4 kB / 0.4966 GB, free: 2.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001553/0.1512, allocations: 0.6848 MB / 0.4973 GB, free: 1.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/0.1512, allocations: 4 kB / 0.4973 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.1513, allocations: 7.938 kB / 0.4973 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007413/0.152, allocations: 177 kB / 0.4974 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/0.1524, allocations: 99.81 kB / 0.4975 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.1572, allocations: 2.783 MB / 0.5003 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.1576, allocations: 23.98 kB / 0.5003 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.1576, allocations: 20 kB / 0.5003 GB, free: 14.42 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.0002726/0.1579, allocations: 189.8 kB / 0.5005 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-05/0.158, allocations: 47.5 kB / 0.5005 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.1592, allocations: 0.6373 MB / 0.5011 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1592, allocations: 4 kB / 0.5012 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1592, allocations: 7.938 kB / 0.5012 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.1592, allocations: 3.984 kB / 0.5012 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.162, allocations: 1.348 MB / 0.5025 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.162, allocations: 4 kB / 0.5025 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.1624, allocations: 75.89 kB / 0.5026 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004548/0.1629, allocations: 148.7 kB / 0.5027 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.1629, allocations: 11.98 kB / 0.5027 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.166, allocations: 2.564 MB / 0.5052 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1661, allocations: 0 / 0.5052 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.1675, allocations: 0.9615 MB / 0.5062 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.1677, allocations: 112.6 kB / 0.5063 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.1678, allocations: 11.94 kB / 0.5063 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.168, allocations: 16.03 kB / 0.5063 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.1681, allocations: 35.95 kB / 0.5063 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.1681, allocations: 11.98 kB / 0.5063 GB, free: 7.945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002155/0.1683, allocations: 198 kB / 0.5065 GB, free: 7.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1683, allocations: 0 / 0.5065 GB, free: 7.754 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006911/0.169, allocations: 140 kB / 0.5067 GB, free: 7.617 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.001764/0.1708, allocations: 1.494 MB / 0.5081 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.1722, allocations: 0.6767 MB / 0.5088 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1722, allocations: 1.062 kB / 0.5088 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008099/0.173, allocations: 435.4 kB / 0.5092 GB, free: 4.957 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.1736, allocations: 72.45 kB / 0.5093 GB, free: 4.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/0.1801, allocations: 4.466 MB / 0.5136 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005558/0.1807, allocations: 0.8746 MB / 0.5145 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.1809, allocations: 67.23 kB / 0.5145 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.1811, allocations: 151.4 kB / 0.5147 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1812, allocations: 0 / 0.5147 GB, free: 15.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.2152, allocations: 10.04 MB / 0.5245 GB, free: 5.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.58, allocations: 11.92 kB / 0.5245 GB, free: 4.996 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)