Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002868/0.002877, allocations: 173.5 kB / 16.76 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.869/2.869, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001089, allocations: 101.5 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3391/0.3391, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005959/0.000596, allocations: 19.98 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5783/0.579, allocations: 56.31 MB / 480.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.7837, allocations: 94.88 MB / 0.5617 GB, free: 7.473 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004008/0.7842, allocations: 95.94 kB / 0.5618 GB, free: 7.379 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03284/0.817, allocations: 6.612 MB / 0.5682 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.457e-06/0.8171, allocations: 0 / 0.5682 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.049e-05/0.8172, allocations: 4 kB / 0.5682 GB, free: 0.6914 MB / 394.7 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.001473/0.8186, allocations: 0.5669 MB / 0.5688 GB, free: 76 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.8187, allocations: 8.031 kB / 0.5688 GB, free: 68 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.8189, allocations: 36.5 kB / 0.5688 GB, free: 32 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.8203, allocations: 482.6 kB / 0.5693 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.954e-05/0.8204, allocations: 20.81 kB / 0.5693 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.8204, allocations: 16.56 kB / 0.5693 GB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007474/0.8212, allocations: 298.7 kB / 0.5696 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.8212, allocations: 3.938 kB / 0.5696 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.8213, allocations: 8 kB / 0.5696 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.8213, allocations: 8 kB / 0.5696 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005349/0.8219, allocations: 173 kB / 0.5698 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.8241, allocations: 1.239 MB / 0.571 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004778/0.8246, allocations: 113.6 kB / 0.5711 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.8248, allocations: 41.77 kB / 0.5711 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.8248, allocations: 0 / 0.5711 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.8249, allocations: 42.5 kB / 0.5712 GB, free: 13.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.024e-06/0.8249, allocations: 0 / 0.5712 GB, free: 13.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.001373/0.8263, allocations: 484.4 kB / 0.5716 GB, free: 12.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/0.8264, allocations: 85.11 kB / 0.5717 GB, free: 12.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.8268, allocations: 246.6 kB / 0.572 GB, free: 12.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.8268, allocations: 29.7 kB / 0.572 GB, free: 12.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.8271, allocations: 195.8 kB / 0.5722 GB, free: 12.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.8271, allocations: 44.14 kB / 0.5722 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.8272, allocations: 4 kB / 0.5722 GB, free: 12.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.8274, allocations: 342.8 kB / 0.5725 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.8275, allocations: 35.92 kB / 0.5726 GB, free: 11.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.8277, allocations: 132.7 kB / 0.5727 GB, free: 11.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.8282, allocations: 192.5 kB / 0.5729 GB, free: 11.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.8282, allocations: 4 kB / 0.5729 GB, free: 11.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005298/0.8287, allocations: 193.5 kB / 0.5731 GB, free: 11.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.8288, allocations: 14.41 kB / 0.5731 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.8288, allocations: 4 kB / 0.5731 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.8288, allocations: 4 kB / 0.5731 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.8292, allocations: 47.92 kB / 0.5731 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.8292, allocations: 4 kB / 0.5731 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.8295, allocations: 11.91 kB / 0.5732 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.8295, allocations: 11.98 kB / 0.5732 GB, free: 11.18 MB / 410.7 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002377/0.8297, allocations: 157.6 kB / 0.5733 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.8298, allocations: 19.72 kB / 0.5733 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004419/0.8303, allocations: 143.2 kB / 0.5735 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.8303, allocations: 0 / 0.5735 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.8303, allocations: 0 / 0.5735 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.8303, allocations: 4 kB / 0.5735 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009495/0.8313, allocations: 479.1 kB / 0.5739 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.8313, allocations: 0 / 0.5739 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.8316, allocations: 27.98 kB / 0.574 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-06/0.8316, allocations: 4.031 kB / 0.574 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.8316, allocations: 4 kB / 0.574 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.8316, allocations: 0 / 0.574 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.8317, allocations: 7.875 kB / 0.574 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.8322, allocations: 276.9 kB / 0.5742 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.627e-05/0.8323, allocations: 100.8 kB / 0.5743 GB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.331e-05/0.8324, allocations: 4.062 kB / 0.5743 GB, free: 9.863 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.8326, allocations: 8 kB / 0.5743 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.8327, allocations: 11.92 kB / 0.5744 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.8327, allocations: 4 kB / 0.5744 GB, free: 9.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002586/0.833, allocations: 166.1 kB / 0.5745 GB, free: 9.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.833, allocations: 3.938 kB / 0.5745 GB, free: 9.676 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006013/0.8336, allocations: 52 kB / 0.5746 GB, free: 9.625 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001871/0.8338, allocations: 107.2 kB / 0.5747 GB, free: 9.508 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.8342, allocations: 115.2 kB / 0.5748 GB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.8342, allocations: 0 / 0.5748 GB, free: 9.398 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.8343, allocations: 43.92 kB / 0.5748 GB, free: 9.355 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008045/0.8351, allocations: 60.66 kB / 0.5749 GB, free: 9.301 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.8368, allocations: 0.7099 MB / 0.5756 GB, free: 8.547 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.8374, allocations: 0.7677 MB / 0.5763 GB, free: 7.754 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/0.8375, allocations: 27.42 kB / 0.5764 GB, free: 7.727 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.8375, allocations: 0 / 0.5764 GB, free: 7.727 MB / 410.7 MB Notification: Performance of Templates: time 0.008844/0.8463, allocations: 2.899 MB / 0.5792 GB, free: 4.828 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)