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.0009341/0.0009341, allocations: 173.8 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0007541/0.0007542, allocations: 74.45 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1704/0.1704, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003253, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2244, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004009/0.2285, allocations: 4.164 MB / 483.8 MB, free: 6.535 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.2302, allocations: 1.092 MB / 484.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.2305, allocations: 25.25 kB / 484.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.2307, allocations: 51.83 kB / 485 MB, free: 5.719 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005445/0.2312, allocations: 203.9 kB / 485.2 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.2315, allocations: 116.4 kB / 485.3 MB, free: 5.543 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.2321, allocations: 438.8 kB / 485.7 MB, free: 5.371 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.2323, allocations: 102 kB / 485.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.2326, allocations: 151.4 kB / 485.9 MB, free: 5.273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.2329, allocations: 178.3 kB / 486.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.233, allocations: 10.31 kB / 486.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.574e-05/0.233, allocations: 11.28 kB / 486.1 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.949e-05/0.2331, allocations: 80.45 kB / 486.2 MB, free: 5.184 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.2333, allocations: 148.1 kB / 486.4 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.2335, allocations: 203.5 kB / 486.6 MB, free: 5.035 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2335, allocations: 1.125 kB / 486.6 MB, free: 5.035 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2335, allocations: 0 / 486.6 MB, free: 5.035 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2335, allocations: 0 / 486.6 MB, free: 5.035 MB / 314.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.000762/0.2343, allocations: 0.5466 MB / 487.1 MB, free: 4.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2344, allocations: 9.375 kB / 487.1 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.2344, allocations: 37.17 kB / 487.2 MB, free: 4.551 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.2348, allocations: 315.7 kB / 487.5 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.2349, allocations: 22.19 kB / 487.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.2349, allocations: 28.97 kB / 487.5 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.2353, allocations: 285.8 kB / 487.8 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2353, allocations: 5.781 kB / 487.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.2354, allocations: 7.031 kB / 487.8 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2354, allocations: 4.688 kB / 487.8 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.2357, allocations: 181.2 kB / 488 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.2368, allocations: 1.231 MB / 489.2 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.2371, allocations: 108.6 kB / 489.3 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.727e-05/0.2372, allocations: 43.69 kB / 489.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.2372, allocations: 6.172 kB / 489.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.2372, allocations: 36.55 kB / 489.4 MB, free: 2.848 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.505e-06/0.2372, allocations: 7.922 kB / 489.4 MB, free: 2.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006658/0.2379, allocations: 483 kB / 489.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.2379, allocations: 83.47 kB / 490 MB, free: 2.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.2381, allocations: 242.1 kB / 490.2 MB, free: 2.203 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.2381, allocations: 31.88 kB / 490.2 MB, free: 2.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.414e-05/0.2382, allocations: 201.3 kB / 490.4 MB, free: 1.996 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.2383, allocations: 40.98 kB / 490.5 MB, free: 1.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-06/0.2383, allocations: 5.375 kB / 490.5 MB, free: 1.961 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.2383, allocations: 335.5 kB / 490.8 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.316e-05/0.2384, allocations: 35.22 kB / 490.8 MB, free: 1.625 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.868e-05/0.2385, allocations: 131.9 kB / 491 MB, free: 1.484 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.2387, allocations: 189.2 kB / 491.2 MB, free: 1.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2387, allocations: 2.125 kB / 491.2 MB, free: 1.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002842/0.239, allocations: 204 kB / 491.4 MB, free: 1.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.239, allocations: 6.969 kB / 491.4 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.239, allocations: 7.484 kB / 491.4 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.239, allocations: 9.438 kB / 491.4 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2392, allocations: 46.72 kB / 491.4 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.2392, allocations: 6.359 kB / 491.4 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2393, allocations: 11.5 kB / 491.4 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.2394, allocations: 13.52 kB / 491.5 MB, free: 1.18 MB / 314.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.0001108/0.2395, allocations: 157.8 kB / 491.6 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.071e-05/0.2395, allocations: 22.47 kB / 491.6 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002138/0.2397, allocations: 134.2 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2398, allocations: 2.172 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2398, allocations: 1.281 kB / 491.8 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2398, allocations: 4.688 kB / 491.8 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/0.2403, allocations: 485 kB / 492.2 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2403, allocations: 0 / 492.2 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2404, allocations: 25.52 kB / 492.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2404, allocations: 2.25 kB / 492.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2404, allocations: 5.25 kB / 492.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.2404, allocations: 1.984 kB / 492.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2404, allocations: 5.188 kB / 492.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.2407, allocations: 278.1 kB / 492.6 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/0.2408, allocations: 96.22 kB / 492.7 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.2408, allocations: 5.844 kB / 492.7 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.2409, allocations: 6.031 kB / 492.7 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.2409, allocations: 7.094 kB / 492.7 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.241, allocations: 3.344 kB / 492.7 MB, free: 236 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001301/0.2411, allocations: 170.8 kB / 492.8 MB, free: 132 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2411, allocations: 0 / 492.8 MB, free: 132 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003083/0.2414, allocations: 44 kB / 492.9 MB, free: 128 kB / 314.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 7.805e-05/0.2415, allocations: 107.2 kB / 493 MB, free: 28 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.2417, allocations: 112.5 kB / 493.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2417, allocations: 1.375 kB / 493.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.122e-05/0.2418, allocations: 43.66 kB / 493.1 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.2423, allocations: 63 kB / 493.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009578/0.2433, allocations: 0.7167 MB / 493.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.2436, allocations: 0.7718 MB / 494.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.2437, allocations: 21.83 kB / 494.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of SimCode: time 4e-07/0.2437, allocations: 0 / 494.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of Templates: time 0.005093/0.2488, allocations: 2.895 MB / 497.6 MB, free: 14.48 MB / 330.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)