Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 111.2 kB / 17.74 MB, free: 5.344 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.00105/0.00105, allocations: 188.1 kB / 18.67 MB, free: 4.422 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.439/1.439, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1742/0.1742, allocations: 37.99 MB / 309.9 MB, free: 5.965 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.001454/0.001454, allocations: 59.91 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 55.25 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006644/0.1154, allocations: 4.421 MB / 492.2 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.1181, allocations: 1.461 MB / 493.7 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003706/0.1185, allocations: 11.94 kB / 493.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.1198, allocations: 382.4 kB / 494 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007782/0.1206, allocations: 254.8 kB / 494.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007681/0.1214, allocations: 239.4 kB / 494.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009867/0.1224, allocations: 0.5612 MB / 495.1 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000551/0.1229, allocations: 285 kB / 495.4 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005293/0.1235, allocations: 259 kB / 495.6 MB, free: 492 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006448/0.1241, allocations: 355 kB / 496 MB, free: 136 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.1243, allocations: 36 kB / 496 MB, free: 100 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005967/0.1249, allocations: 231.6 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002892/0.1252, allocations: 235.5 kB / 496.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.1256, allocations: 266.7 kB / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009122/0.1265, allocations: 0.6698 MB / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1265, allocations: 0 / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1265, allocations: 0 / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.1266, allocations: 0 / 497.4 MB, free: 14.71 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.00179/0.1284, allocations: 0.7738 MB / 498.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1284, allocations: 19.89 kB / 498.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006679/0.1291, allocations: 84.23 kB / 498.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007155/0.1298, allocations: 427.2 kB / 498.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.1299, allocations: 29.38 kB / 498.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.13, allocations: 52.05 kB / 498.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.131, allocations: 0.6765 MB / 499.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.1311, allocations: 0 / 499.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.895e-05/0.1311, allocations: 16 kB / 499.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000186/0.1313, allocations: 52.97 kB / 499.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.1323, allocations: 0.6674 MB / 0.4884 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.1359, allocations: 2.513 MB / 0.4909 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.1365, allocations: 337.3 kB / 0.4912 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.1368, allocations: 229.6 kB / 0.4914 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.1369, allocations: 8.25 kB / 0.4914 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.1369, allocations: 46.48 kB / 0.4915 GB, free: 8.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 3.296e-06/0.1369, allocations: 0 / 0.4915 GB, free: 8.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.002179/0.1391, allocations: 1.345 MB / 0.4928 GB, free: 7.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1392, allocations: 85.05 kB / 0.4929 GB, free: 7.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.1395, allocations: 300.5 kB / 0.4932 GB, free: 6.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.1396, allocations: 33.7 kB / 0.4932 GB, free: 6.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.1398, allocations: 259.5 kB / 0.4934 GB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1399, allocations: 149.8 kB / 0.4936 GB, free: 6.262 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.14, allocations: 98.28 kB / 0.4937 GB, free: 6.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1402, allocations: 358.7 kB / 0.494 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.1405, allocations: 197 kB / 0.4942 GB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.1409, allocations: 369.1 kB / 0.4946 GB, free: 5.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.1416, allocations: 0.6058 MB / 0.4952 GB, free: 4.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1416, allocations: 0 / 0.4952 GB, free: 4.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009328/0.1426, allocations: 0.6264 MB / 0.4958 GB, free: 3.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.1426, allocations: 8 kB / 0.4958 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1426, allocations: 4 kB / 0.4958 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.1427, allocations: 8 kB / 0.4958 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.1431, allocations: 116.5 kB / 0.4959 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.1432, allocations: 11.94 kB / 0.4959 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.1434, allocations: 27.98 kB / 0.4959 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.1435, allocations: 23.98 kB / 0.496 GB, free: 3.672 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002675/0.1438, allocations: 213.6 kB / 0.4962 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.1439, allocations: 47.39 kB / 0.4962 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007755/0.1447, allocations: 0.4927 MB / 0.4967 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.1447, allocations: 12 kB / 0.4967 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1447, allocations: 4 kB / 0.4967 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1447, allocations: 7.984 kB / 0.4967 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.1464, allocations: 1.097 MB / 0.4978 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.1465, allocations: 4 kB / 0.4978 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.1468, allocations: 71.88 kB / 0.4979 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.1468, allocations: 4.094 kB / 0.4979 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1469, allocations: 12 kB / 0.4979 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1469, allocations: 0 / 0.4979 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1469, allocations: 4 kB / 0.4979 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.148, allocations: 0.8358 MB / 0.4987 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.727e-05/0.1481, allocations: 104.7 kB / 0.4988 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.1481, allocations: 15.94 kB / 0.4988 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.1484, allocations: 19.92 kB / 0.4988 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.1484, allocations: 27.91 kB / 0.4989 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.1485, allocations: 12 kB / 0.4989 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.1487, allocations: 211.1 kB / 0.4991 GB, free: 376 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1487, allocations: 0 / 0.4991 GB, free: 376 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005019/0.1492, allocations: 107.9 kB / 0.4992 GB, free: 268 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002608/0.1495, allocations: 147.9 kB / 0.4993 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007658/0.1503, allocations: 493.6 kB / 0.4998 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1503, allocations: 64 / 0.4998 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.1506, allocations: 235.8 kB / 0.5 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.1511, allocations: 61.02 kB / 0.5001 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.153, allocations: 1.164 MB / 0.5012 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.1534, allocations: 0.8743 MB / 0.5021 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.1536, allocations: 35.44 kB / 0.5021 GB, free: 13.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.234e-06/0.1536, allocations: 3.938 kB / 0.5021 GB, free: 13.19 MB / 398.1 MB Notification: Performance of Templates: time 0.009549/0.1632, allocations: 5.592 MB / 0.5076 GB, free: 7.582 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)