Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 169.5 kB / 16.07 MB, free: 5.562 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.216/1.216, allocations: 205.4 MB / 222.2 MB, free: 13.62 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.0007449/0.000745, allocations: 90.3 kB / 270.6 MB, free: 13.14 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1572/0.1572, allocations: 38.08 MB / 356.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 20 kB / 423.3 MB, free: 26.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.07859, allocations: 56.32 MB / 479.6 MB, free: 1.715 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003254/0.08188, allocations: 3.099 MB / 482.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.08344, allocations: 1.253 MB / 484 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.08358, allocations: 11.94 kB / 484 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.08373, allocations: 39.7 kB / 484 MB, free: 13.28 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003963/0.08413, allocations: 159.3 kB / 484.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.0844, allocations: 127.6 kB / 484.3 MB, free: 13 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003305/0.08474, allocations: 318.9 kB / 484.6 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000434/0.08518, allocations: 258.9 kB / 484.9 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.08535, allocations: 99.52 kB / 485 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.0855, allocations: 103.6 kB / 485.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.08553, allocations: 12 kB / 485.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003658/0.08591, allocations: 275.3 kB / 485.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.697e-05/0.08597, allocations: 47.83 kB / 485.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.08608, allocations: 117.2 kB / 485.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.08633, allocations: 207.5 kB / 485.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.08634, allocations: 0 / 485.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.08635, allocations: 3.984 kB / 485.7 MB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.08636, allocations: 0 / 485.7 MB, free: 11.56 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005487/0.08692, allocations: 463.1 kB / 486.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.08696, allocations: 16.03 kB / 486.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005849/0.08755, allocations: 76.58 kB / 486.3 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.08782, allocations: 263.7 kB / 486.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.08785, allocations: 12.7 kB / 486.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.729e-05/0.0879, allocations: 24.36 kB / 486.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.08827, allocations: 264.1 kB / 486.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.0883, allocations: 7.938 kB / 486.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.08832, allocations: 4 kB / 486.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.08836, allocations: 20.25 kB / 486.8 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003276/0.08869, allocations: 216.4 kB / 487.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.09009, allocations: 1.21 MB / 488.3 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.0903, allocations: 133.1 kB / 488.4 MB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.782e-05/0.09038, allocations: 45.86 kB / 488.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.0904, allocations: 0 / 488.4 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.09044, allocations: 38.55 kB / 488.5 MB, free: 8.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.09044, allocations: 0 / 488.5 MB, free: 8.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003181/0.09076, allocations: 169.3 kB / 488.6 MB, free: 8.391 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.09082, allocations: 81.09 kB / 488.7 MB, free: 8.293 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.09101, allocations: 202.9 kB / 488.9 MB, free: 8.082 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.09103, allocations: 29.7 kB / 489 MB, free: 8.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.859e-05/0.09112, allocations: 155.8 kB / 489.1 MB, free: 7.891 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.09116, allocations: 51.34 kB / 489.2 MB, free: 7.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.09118, allocations: 4.125 kB / 489.2 MB, free: 7.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.762e-05/0.09128, allocations: 326.8 kB / 489.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.557e-05/0.09136, allocations: 47.97 kB / 489.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.09149, allocations: 118 kB / 489.6 MB, free: 7.309 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.0917, allocations: 186.5 kB / 489.8 MB, free: 7.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.09171, allocations: 0 / 489.8 MB, free: 7.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002838/0.092, allocations: 209.3 kB / 490 MB, free: 6.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.09202, allocations: 8 kB / 490 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.09203, allocations: 0 / 490 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.09206, allocations: 11.92 kB / 490 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.09228, allocations: 51.92 kB / 490.1 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008338/0.09313, allocations: 1.329 MB / 491.4 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.09324, allocations: 19.75 kB / 491.4 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.09327, allocations: 12 kB / 491.5 MB, free: 5.316 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.09339, allocations: 141.7 kB / 491.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/0.09344, allocations: 19.75 kB / 491.6 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.09366, allocations: 143.1 kB / 491.8 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.09367, allocations: 0 / 491.8 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.09368, allocations: 4 kB / 491.8 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.09369, allocations: 0 / 491.8 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005894/0.09428, allocations: 0.492 MB / 492.3 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.0943, allocations: 0 / 492.3 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.09447, allocations: 31.97 kB / 492.3 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.09449, allocations: 4.062 kB / 492.3 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.09451, allocations: 15.94 kB / 492.3 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007313/0.09525, allocations: 1.321 MB / 493.6 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.09526, allocations: 4.031 kB / 493.6 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.09557, allocations: 293.8 kB / 493.9 MB, free: 2.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/0.09563, allocations: 96.89 kB / 494 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.09566, allocations: 0 / 494 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.422e-05/0.09576, allocations: 16.06 kB / 494 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.367e-05/0.09579, allocations: 11.97 kB / 494 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.09581, allocations: 4 kB / 494 MB, free: 2.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001215/0.09594, allocations: 156.3 kB / 494.2 MB, free: 2.328 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09594, allocations: 0 / 494.2 MB, free: 2.328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003193/0.09627, allocations: 55.84 kB / 494.2 MB, free: 2.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.422e-05/0.09637, allocations: 91.25 kB / 494.3 MB, free: 2.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.09665, allocations: 142.9 kB / 494.5 MB, free: 2.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.09667, allocations: 0 / 494.5 MB, free: 2.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.09682, allocations: 59.91 kB / 494.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.09718, allocations: 24.86 kB / 494.6 MB, free: 1.957 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008497/0.09804, allocations: 0.6435 MB / 495.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.09832, allocations: 0.7478 MB / 495.9 MB, free: 0.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.09837, allocations: 15.44 kB / 496 MB, free: 496 kB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09838, allocations: 0 / 496 MB, free: 496 kB / 330.7 MB Notification: Performance of Templates: time 0.004206/0.1026, allocations: 2.991 MB / 499 MB, free: 13.49 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)