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.001741/0.001741, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001898/0.001898, allocations: 187.1 kB / 18.67 MB, free: 4.441 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.493/1.493, 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.1728/0.1728, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001718/0.001718, allocations: 63.91 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1259, allocations: 55.24 MB / 487.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.007188/0.1331, allocations: 4.425 MB / 492.2 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.136, allocations: 1.473 MB / 493.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003146/0.1363, allocations: 15.94 kB / 493.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.1375, allocations: 374.5 kB / 494 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006234/0.1381, allocations: 246.8 kB / 494.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007232/0.1389, allocations: 247.4 kB / 494.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006078/0.1395, allocations: 0.5572 MB / 495.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004423/0.1399, allocations: 285 kB / 495.4 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003437/0.1403, allocations: 259 kB / 495.6 MB, free: 488 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004633/0.1408, allocations: 355 kB / 496 MB, free: 132 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.205e-05/0.1408, allocations: 40 kB / 496 MB, free: 92 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004573/0.1413, allocations: 227.6 kB / 496.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.1416, allocations: 247.5 kB / 496.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.1418, allocations: 250.7 kB / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007204/0.1426, allocations: 0.6659 MB / 497.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1426, allocations: 7.938 kB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1426, allocations: 0 / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.1426, allocations: 0 / 497.4 MB, free: 14.7 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.001452/0.1441, allocations: 0.7738 MB / 498.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1441, allocations: 15.89 kB / 498.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005912/0.1447, allocations: 88.22 kB / 498.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007665/0.1455, allocations: 423.2 kB / 498.7 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.1455, allocations: 29.38 kB / 498.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.1457, allocations: 48.11 kB / 498.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000926/0.1466, allocations: 0.6804 MB / 499.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1466, allocations: 0 / 499.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.1467, allocations: 19.92 kB / 499.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/0.1469, allocations: 52.95 kB / 499.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000919/0.1478, allocations: 0.6713 MB / 0.4884 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.1513, allocations: 2.513 MB / 0.4909 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.1518, allocations: 333.4 kB / 0.4912 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.1521, allocations: 225.6 kB / 0.4914 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1522, allocations: 4.266 kB / 0.4914 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1522, allocations: 54.42 kB / 0.4915 GB, free: 8.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.845e-06/0.1522, allocations: 0 / 0.4915 GB, free: 8.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.00206/0.1543, allocations: 1.341 MB / 0.4928 GB, free: 7.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.1544, allocations: 85.11 kB / 0.4929 GB, free: 7.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1547, allocations: 300.5 kB / 0.4932 GB, free: 6.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1547, allocations: 29.7 kB / 0.4932 GB, free: 6.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.1549, allocations: 263.6 kB / 0.4934 GB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.155, allocations: 153.8 kB / 0.4936 GB, free: 6.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.1552, allocations: 98.14 kB / 0.4937 GB, free: 6.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1553, allocations: 350.7 kB / 0.494 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.1556, allocations: 205 kB / 0.4942 GB, free: 5.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003765/0.1559, allocations: 361.1 kB / 0.4946 GB, free: 5.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006864/0.1566, allocations: 0.6097 MB / 0.4952 GB, free: 4.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1567, allocations: 0 / 0.4952 GB, free: 4.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008517/0.1575, allocations: 0.638 MB / 0.4958 GB, free: 3.855 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.1575, allocations: 4 kB / 0.4958 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1576, allocations: 8.688 kB / 0.4958 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.1576, allocations: 8 kB / 0.4958 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.158, allocations: 111.8 kB / 0.4959 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.158, allocations: 8 kB / 0.4959 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1583, allocations: 27.97 kB / 0.4959 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.1583, allocations: 20 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.0002445/0.1586, allocations: 217.6 kB / 0.4962 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.28e-05/0.1587, allocations: 39.47 kB / 0.4962 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007358/0.1594, allocations: 0.4926 MB / 0.4967 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.1595, allocations: 16 kB / 0.4967 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1595, allocations: 0 / 0.4967 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1595, allocations: 3.984 kB / 0.4967 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.1612, allocations: 1.101 MB / 0.4978 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1612, allocations: 4 kB / 0.4978 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.1616, allocations: 76.03 kB / 0.4979 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.1616, allocations: 4 kB / 0.4979 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.1616, allocations: 11.94 kB / 0.4979 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.1616, allocations: 7.922 kB / 0.4979 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1616, allocations: 4 kB / 0.4979 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.1627, allocations: 0.8242 MB / 0.4987 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.374e-05/0.1628, allocations: 108.7 kB / 0.4988 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.1628, allocations: 15.89 kB / 0.4988 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.163, allocations: 15.98 kB / 0.4988 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.1631, allocations: 35.84 kB / 0.4989 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.1631, allocations: 8 kB / 0.4989 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.1633, allocations: 215 kB / 0.4991 GB, free: 372 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1634, allocations: 4 kB / 0.4991 GB, free: 368 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004861/0.1638, allocations: 111.9 kB / 0.4992 GB, free: 256 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.0002457/0.1641, allocations: 128 kB / 0.4993 GB, free: 120 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007228/0.1648, allocations: 0.4935 MB / 0.4998 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1648, allocations: 0 / 0.4998 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002874/0.1651, allocations: 223.7 kB / 0.5 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005214/0.1657, allocations: 76.98 kB / 0.5001 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.1674, allocations: 1.16 MB / 0.5012 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.1678, allocations: 0.8743 MB / 0.5021 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.1679, allocations: 43.44 kB / 0.5021 GB, free: 13.18 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1679, allocations: 0 / 0.5021 GB, free: 13.18 MB / 398.1 MB Notification: Performance of Templates: time 0.008577/0.1765, allocations: 5.647 MB / 0.5076 GB, free: 7.52 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)