Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001048/0.001048, allocations: 175.5 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.248/1.248, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007366/0.0007367, allocations: 85.05 kB / 270.6 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.17/0.17, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003576, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2252, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.004112/0.2293, allocations: 4.026 MB / 483.7 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.2312, allocations: 1.061 MB / 484.7 MB, free: 5.859 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004288/0.2316, allocations: 29.12 kB / 484.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.2319, allocations: 50.3 kB / 484.8 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000709/0.2326, allocations: 189.5 kB / 485 MB, free: 5.715 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.233, allocations: 109.3 kB / 485.1 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005946/0.2336, allocations: 414.4 kB / 485.5 MB, free: 5.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.2338, allocations: 67.61 kB / 485.6 MB, free: 5.477 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003462/0.2341, allocations: 142.8 kB / 485.7 MB, free: 5.414 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.2345, allocations: 161.1 kB / 485.9 MB, free: 5.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.2345, allocations: 9.188 kB / 485.9 MB, free: 5.359 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.461e-05/0.2346, allocations: 10.28 kB / 485.9 MB, free: 5.359 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.2347, allocations: 73.02 kB / 485.9 MB, free: 5.336 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.2349, allocations: 140.6 kB / 486.1 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.2351, allocations: 183 kB / 486.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2351, allocations: 1 kB / 486.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2351, allocations: 0 / 486.3 MB, free: 5.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.2352, allocations: 0 / 486.3 MB, free: 5.195 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007899/0.236, allocations: 0.5193 MB / 486.8 MB, free: 4.742 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.236, allocations: 9.25 kB / 486.8 MB, free: 4.742 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.716e-05/0.2361, allocations: 30.38 kB / 486.8 MB, free: 4.727 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.2365, allocations: 299.3 kB / 487.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.2365, allocations: 20.31 kB / 487.1 MB, free: 4.465 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.2365, allocations: 22.22 kB / 487.2 MB, free: 4.457 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.2369, allocations: 271.8 kB / 487.4 MB, free: 4.285 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.237, allocations: 5.062 kB / 487.4 MB, free: 4.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.237, allocations: 9.812 kB / 487.4 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.237, allocations: 6.25 kB / 487.4 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.2373, allocations: 158.8 kB / 487.6 MB, free: 4.223 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2384, allocations: 1.175 MB / 488.8 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.2386, allocations: 74.89 kB / 488.8 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.405e-05/0.2386, allocations: 31.14 kB / 488.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.2386, allocations: 1.156 kB / 488.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.2387, allocations: 36.64 kB / 488.9 MB, free: 3.082 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.2387, allocations: 0 / 488.9 MB, free: 3.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006131/0.2393, allocations: 413.5 kB / 489.3 MB, free: 2.723 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.2393, allocations: 79.41 kB / 489.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.2396, allocations: 242.5 kB / 489.6 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.2396, allocations: 25.83 kB / 489.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.2397, allocations: 201.1 kB / 489.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.2397, allocations: 27.16 kB / 489.9 MB, free: 2.254 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.2397, allocations: 0 / 489.9 MB, free: 2.254 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.606e-05/0.2398, allocations: 337.6 kB / 490.2 MB, free: 1.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.032e-05/0.2398, allocations: 30.41 kB / 490.2 MB, free: 1.914 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.622e-05/0.2399, allocations: 125.9 kB / 490.4 MB, free: 1.773 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.24, allocations: 164.3 kB / 490.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2401, allocations: 0 / 490.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002335/0.2403, allocations: 185.6 kB / 490.7 MB, free: 1.512 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2403, allocations: 6.188 kB / 490.7 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2403, allocations: 5.094 kB / 490.7 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2404, allocations: 8.5 kB / 490.7 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.2405, allocations: 44.02 kB / 490.8 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.2405, allocations: 6.203 kB / 490.8 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2406, allocations: 4.641 kB / 490.8 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.2407, allocations: 12.25 kB / 490.8 MB, free: 1.496 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 (22): * Single equations (assignments): 22 * 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.0001157/0.2408, allocations: 151 kB / 490.9 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.2408, allocations: 29.38 kB / 491 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.241, allocations: 98.06 kB / 491.1 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.241, allocations: 1.375 kB / 491.1 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.241, allocations: 5.875 kB / 491.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.241, allocations: 0.7969 kB / 491.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004295/0.2415, allocations: 426.8 kB / 491.5 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2415, allocations: 1.375 kB / 491.5 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.812e-05/0.2416, allocations: 15.62 kB / 491.5 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2416, allocations: 4.641 kB / 491.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.2416, allocations: 2.75 kB / 491.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2416, allocations: 0.7031 kB / 491.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2416, allocations: 1.375 kB / 491.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/0.2418, allocations: 231.7 kB / 491.7 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.941e-05/0.2419, allocations: 92.12 kB / 491.8 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.242, allocations: 6.125 kB / 491.8 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.757e-05/0.2421, allocations: 1.375 kB / 491.8 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.806e-05/0.2421, allocations: 9.047 kB / 491.8 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.2421, allocations: 2.75 kB / 491.8 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001418/0.2423, allocations: 169.5 kB / 492 MB, free: 0.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2423, allocations: 3.938 kB / 492 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003037/0.2426, allocations: 39.78 kB / 492.1 MB, free: 0.4922 MB / 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 (9): * Single equations (assignments): 8 * 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.946e-05/0.2427, allocations: 105 kB / 492.2 MB, free: 404 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.2428, allocations: 88.72 kB / 492.2 MB, free: 372 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2429, allocations: 0 / 492.2 MB, free: 372 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.372e-05/0.2429, allocations: 36.11 kB / 492.3 MB, free: 356 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.2434, allocations: 58.56 kB / 492.3 MB, free: 332 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009269/0.2444, allocations: 0.6546 MB / 493 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.2447, allocations: 0.759 MB / 493.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.382e-05/0.2448, allocations: 19.81 kB / 493.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2448, allocations: 0 / 493.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of Templates: time 0.005561/0.2504, allocations: 2.613 MB / 496.4 MB, free: 14.95 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)