Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009157/0.000916, allocations: 171.6 kB / 16.07 MB, free: 5.695 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.253/1.253, allocations: 205.4 MB / 222.2 MB, free: 9.035 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.0007097/0.0007097, allocations: 88.83 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1693/0.1693, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003826, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2234, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.004984/0.2284, allocations: 5.858 MB / 485.5 MB, free: 5.32 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.2308, allocations: 1.639 MB / 487.1 MB, free: 4.148 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003851/0.2312, allocations: 41.12 kB / 487.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004244/0.2316, allocations: 145.4 kB / 487.3 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009266/0.2326, allocations: 420.2 kB / 487.7 MB, free: 3.844 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.233, allocations: 183.8 kB / 487.9 MB, free: 3.754 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009567/0.234, allocations: 0.925 MB / 488.8 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.2343, allocations: 187.1 kB / 489 MB, free: 3.328 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.2347, allocations: 291.4 kB / 489.3 MB, free: 3.211 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005954/0.2353, allocations: 392.8 kB / 489.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.214e-05/0.2354, allocations: 20.97 kB / 489.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.03e-05/0.2355, allocations: 21 kB / 489.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.2357, allocations: 178.7 kB / 489.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.236, allocations: 271.2 kB / 490.2 MB, free: 2.871 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004594/0.2364, allocations: 422.5 kB / 490.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2364, allocations: 0 / 490.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2365, allocations: 5.031 kB / 490.6 MB, free: 2.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2365, allocations: 0 / 490.6 MB, free: 2.77 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001175/0.2376, allocations: 0.7985 MB / 491.4 MB, free: 2.164 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2377, allocations: 13.56 kB / 491.4 MB, free: 2.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.436e-05/0.2378, allocations: 65.61 kB / 491.4 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006428/0.2384, allocations: 479.7 kB / 491.9 MB, free: 1.797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.2385, allocations: 32.5 kB / 491.9 MB, free: 1.781 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-05/0.2386, allocations: 39.47 kB / 492 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.2393, allocations: 0.5358 MB / 492.5 MB, free: 1.496 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2393, allocations: 5.219 kB / 492.5 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.2394, allocations: 20.61 kB / 492.5 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/0.2394, allocations: 19.27 kB / 492.6 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.24, allocations: 396.3 kB / 493 MB, free: 1.348 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.2421, allocations: 1.926 MB / 494.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005659/0.2427, allocations: 339.4 kB / 495.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.243, allocations: 175.7 kB / 495.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2431, allocations: 12.34 kB / 495.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003742/0.2434, allocations: 281.1 kB / 495.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/0.2434, allocations: 0 / 495.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001824/0.2453, allocations: 1.177 MB / 496.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.227e-05/0.2454, allocations: 165.6 kB / 497 MB, free: 14.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.2458, allocations: 394.1 kB / 497.4 MB, free: 14.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.2459, allocations: 36.45 kB / 497.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.2461, allocations: 295.7 kB / 497.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-05/0.2462, allocations: 112.6 kB / 497.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.2462, allocations: 11.03 kB / 497.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.2464, allocations: 356.3 kB / 498.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.2466, allocations: 119.7 kB / 498.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.2469, allocations: 286.3 kB / 498.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005593/0.2475, allocations: 479.2 kB / 499 MB, free: 13.04 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2475, allocations: 0.9062 kB / 499.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007802/0.2483, allocations: 0.5178 MB / 499.6 MB, free: 12.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.2483, allocations: 37.94 kB / 499.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2483, allocations: 5.406 kB / 499.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2484, allocations: 9.219 kB / 499.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.2488, allocations: 110.1 kB / 499.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2488, allocations: 11.69 kB / 499.7 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.2491, allocations: 24.23 kB / 499.8 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.2492, allocations: 32.38 kB / 499.8 MB, free: 12.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002848/0.2495, allocations: 255.6 kB / 0.4883 GB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.609e-05/0.2495, allocations: 45.81 kB / 0.4884 GB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007101/0.2502, allocations: 467.1 kB / 0.4888 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.2503, allocations: 2.906 kB / 0.4888 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2503, allocations: 1.031 kB / 0.4888 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.2503, allocations: 3.031 kB / 0.4888 GB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.2516, allocations: 0.9622 MB / 0.4898 GB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2516, allocations: 8.844 kB / 0.4898 GB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003198/0.2519, allocations: 63.53 kB / 0.4898 GB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.2519, allocations: 2.656 kB / 0.4898 GB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.252, allocations: 13.94 kB / 0.4898 GB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.252, allocations: 2.531 kB / 0.4898 GB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.252, allocations: 5.188 kB / 0.4899 GB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000948/0.2529, allocations: 0.7073 MB / 0.4905 GB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.2531, allocations: 144.9 kB / 0.4907 GB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.669e-05/0.2532, allocations: 8.875 kB / 0.4907 GB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.2534, allocations: 17.2 kB / 0.4907 GB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.462e-05/0.2535, allocations: 22.34 kB / 0.4907 GB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.2536, allocations: 34.98 kB / 0.4908 GB, free: 11.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002907/0.2538, allocations: 276.3 kB / 0.491 GB, free: 10.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2539, allocations: 1.094 kB / 0.491 GB, free: 10.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004624/0.2543, allocations: 101.9 kB / 0.4911 GB, free: 10.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0001167/0.2544, allocations: 111.6 kB / 0.4912 GB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.2551, allocations: 408 kB / 0.4916 GB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2551, allocations: 4.062 kB / 0.4916 GB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.2554, allocations: 259.3 kB / 0.4919 GB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006159/0.256, allocations: 96.67 kB / 0.492 GB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.2577, allocations: 1.232 MB / 0.4932 GB, free: 9.566 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.2581, allocations: 0.88 MB / 0.494 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.2583, allocations: 36.66 kB / 0.4941 GB, free: 8.773 MB / 330.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2583, allocations: 3.938 kB / 0.4941 GB, free: 8.77 MB / 330.7 MB Notification: Performance of Templates: time 0.008671/0.267, allocations: 5.848 MB / 0.4998 GB, free: 5.449 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)