Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=7406,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=7406,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001345/0.001345, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.672/1.672, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2446/0.2446, allocations: 37.97 MB / 309.8 MB, free: 5.973 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.002111/0.002112, allocations: 67.89 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3502, allocations: 55.25 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004899/0.3551, allocations: 4.077 MB / 436.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3566, allocations: 0.8969 MB / 437 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.3568, allocations: 11.94 kB / 437 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.357, allocations: 43.52 kB / 437.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.3575, allocations: 175.1 kB / 437.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.3577, allocations: 75.84 kB / 437.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.3581, allocations: 398.6 kB / 437.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.3583, allocations: 106.2 kB / 437.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.3586, allocations: 187.1 kB / 438 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.3588, allocations: 179.3 kB / 438.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.645e-05/0.3589, allocations: 24 kB / 438.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.841e-05/0.3589, allocations: 20 kB / 438.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.725e-05/0.359, allocations: 83.73 kB / 438.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.3592, allocations: 147.2 kB / 438.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.3595, allocations: 284.8 kB / 438.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3595, allocations: 0 / 438.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3595, allocations: 0 / 438.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3595, allocations: 0 / 438.7 MB, free: 12.78 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009325/0.3604, allocations: 0.5987 MB / 439.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3605, allocations: 15.89 kB / 439.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.52e-05/0.3606, allocations: 32.56 kB / 439.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.3611, allocations: 338.9 kB / 439.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.3611, allocations: 24.8 kB / 439.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.3612, allocations: 36.12 kB / 439.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.3616, allocations: 282 kB / 440 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3616, allocations: 7.984 kB / 440 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.3616, allocations: 8 kB / 440 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3617, allocations: 12 kB / 440 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.362, allocations: 187.5 kB / 440.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.3633, allocations: 1.276 MB / 441.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.3636, allocations: 123.8 kB / 441.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.857e-05/0.3637, allocations: 46.62 kB / 441.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.3637, allocations: 0 / 441.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3638, allocations: 46.5 kB / 441.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.3638, allocations: 0 / 441.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008338/0.3646, allocations: 0.5154 MB / 442.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.3647, allocations: 106.8 kB / 442.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.3649, allocations: 242.6 kB / 442.6 MB, free: 8.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.3649, allocations: 25.7 kB / 442.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3651, allocations: 199.9 kB / 442.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.3651, allocations: 43.39 kB / 442.8 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.237e-05/0.3652, allocations: 49.55 kB / 442.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.3653, allocations: 338.8 kB / 443.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.234e-05/0.3653, allocations: 39.98 kB / 443.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.3655, allocations: 139.7 kB / 443.4 MB, free: 7.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.3657, allocations: 191.4 kB / 443.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3657, allocations: 4 kB / 443.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003588/0.366, allocations: 229.9 kB / 443.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.3661, allocations: 8.406 kB / 443.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3661, allocations: 4 kB / 443.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.3662, allocations: 28.84 kB / 443.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.3665, allocations: 63.83 kB / 443.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.3666, allocations: 11.92 kB / 443.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3667, allocations: 8 kB / 443.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.3667, allocations: 8 kB / 443.9 MB, free: 7.082 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.3669, allocations: 153.8 kB / 444.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.3669, allocations: 23.72 kB / 444.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.3672, allocations: 135.3 kB / 444.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3672, allocations: 11.92 kB / 444.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3672, allocations: 0 / 444.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3672, allocations: 0 / 444.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.3676, allocations: 285.5 kB / 444.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3676, allocations: 4 kB / 444.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.3677, allocations: 23.98 kB / 444.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3677, allocations: 4.094 kB / 444.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.3678, allocations: 15.92 kB / 444.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3678, allocations: 7.938 kB / 444.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3678, allocations: 3.938 kB / 444.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003798/0.3682, allocations: 367.2 kB / 444.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.3682, allocations: 92.86 kB / 445 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.3683, allocations: 4 kB / 445 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.3684, allocations: 12 kB / 445 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.041e-05/0.3685, allocations: 7.984 kB / 445.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.3685, allocations: 4 kB / 445.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.3686, allocations: 174 kB / 445.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3686, allocations: 0 / 445.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.369, allocations: 48 kB / 445.3 MB, free: 5.629 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * 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.0001165/0.3691, allocations: 99.19 kB / 445.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003126/0.3694, allocations: 217.8 kB / 445.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3694, allocations: 0 / 445.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.236e-05/0.3695, allocations: 51.86 kB / 445.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005063/0.37, allocations: 49.47 kB / 445.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008686/0.3709, allocations: 0.6075 MB / 446.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.3712, allocations: 0.7636 MB / 447.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.338e-05/0.3713, allocations: 34.28 kB / 447.1 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.3713, allocations: 27.36 kB / 447.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3713, allocations: 0 / 447.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of Templates: time 0.005669/0.377, allocations: 2.186 MB / 449.3 MB, free: 1.527 MB / 318.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)