Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001519, allocations: 185.5 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.96/1.96, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 88.77 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3216/0.3216, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.405e-05, allocations: 0 / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 56.32 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.518/0.6242, allocations: 94.31 MB / 0.5541 GB, free: 9.418 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.6245, allocations: 91.92 kB / 0.5542 GB, free: 9.328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04121/0.6658, allocations: 9.787 MB / 0.5638 GB, free: 15.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6658, allocations: 0 / 0.5638 GB, free: 15.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.6658, allocations: 7.938 kB / 0.5638 GB, free: 15.44 MB / 410.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.0008041/0.6667, allocations: 474.9 kB / 0.5642 GB, free: 14.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.6667, allocations: 8.031 kB / 0.5643 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.6678, allocations: 95.56 kB / 0.5643 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.6684, allocations: 266.8 kB / 0.5646 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.6685, allocations: 12.33 kB / 0.5646 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.278e-05/0.6686, allocations: 19.98 kB / 0.5646 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006188/0.6692, allocations: 248 kB / 0.5649 GB, free: 14.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.6692, allocations: 15.83 kB / 0.5649 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.753e-05/0.6693, allocations: 8 kB / 0.5649 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.6693, allocations: 16.31 kB / 0.5649 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005634/0.6699, allocations: 196.8 kB / 0.5651 GB, free: 13.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.6722, allocations: 1.214 MB / 0.5663 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.6725, allocations: 117.1 kB / 0.5664 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.6726, allocations: 45.81 kB / 0.5664 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.6727, allocations: 0 / 0.5664 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.6727, allocations: 46.5 kB / 0.5665 GB, free: 12.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.844e-06/0.6727, allocations: 0 / 0.5665 GB, free: 12.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003944/0.6731, allocations: 122.7 kB / 0.5666 GB, free: 12.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.6732, allocations: 81.05 kB / 0.5667 GB, free: 12.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.6735, allocations: 185.7 kB / 0.5669 GB, free: 12.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.6735, allocations: 25.7 kB / 0.5669 GB, free: 12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.6737, allocations: 222.3 kB / 0.5671 GB, free: 11.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.6738, allocations: 35.45 kB / 0.5671 GB, free: 11.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/0.6738, allocations: 12.03 kB / 0.5671 GB, free: 11.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.674, allocations: 315.1 kB / 0.5674 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.6741, allocations: 39.98 kB / 0.5675 GB, free: 11.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.6743, allocations: 111.9 kB / 0.5676 GB, free: 11.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.6745, allocations: 67.91 kB / 0.5676 GB, free: 11.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6745, allocations: 0 / 0.5676 GB, free: 11.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004682/0.675, allocations: 193.8 kB / 0.5678 GB, free: 10.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.675, allocations: 4 kB / 0.5678 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.675, allocations: 4 kB / 0.5678 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.6751, allocations: 4.344 kB / 0.5678 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.6754, allocations: 55.91 kB / 0.5679 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.6755, allocations: 4 kB / 0.5679 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.6757, allocations: 27.62 kB / 0.5679 GB, free: 10.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.6757, allocations: 8 kB / 0.5679 GB, free: 10.86 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001055/0.6758, allocations: 116.9 kB / 0.568 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.6759, allocations: 19.77 kB / 0.5681 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000361/0.6763, allocations: 127.7 kB / 0.5682 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.6763, allocations: 7.984 kB / 0.5682 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.6763, allocations: 4 kB / 0.5682 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.6763, allocations: 0 / 0.5682 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.6773, allocations: 0.5344 MB / 0.5687 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.6774, allocations: 4 kB / 0.5687 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.6776, allocations: 32.11 kB / 0.5688 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.6777, allocations: 4.062 kB / 0.5688 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.6777, allocations: 8 kB / 0.5688 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.6777, allocations: 0 / 0.5688 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.6777, allocations: 4 kB / 0.5688 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.6783, allocations: 409.1 kB / 0.5692 GB, free: 9.441 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-05/0.6784, allocations: 100.8 kB / 0.5693 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.6785, allocations: 4 kB / 0.5693 GB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.6787, allocations: 4 kB / 0.5693 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.6787, allocations: 15.94 kB / 0.5693 GB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.6788, allocations: 11.94 kB / 0.5693 GB, free: 9.289 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001854/0.6789, allocations: 144.5 kB / 0.5694 GB, free: 9.148 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.679, allocations: 4 kB / 0.5694 GB, free: 9.145 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004475/0.6794, allocations: 51.94 kB / 0.5695 GB, free: 9.094 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete 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.0001703/0.6796, allocations: 107.2 kB / 0.5696 GB, free: 8.977 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.68, allocations: 112.1 kB / 0.5697 GB, free: 8.867 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.68, allocations: 4.688 kB / 0.5697 GB, free: 8.863 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.6801, allocations: 47.92 kB / 0.5697 GB, free: 8.816 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.6805, allocations: 32.06 kB / 0.5698 GB, free: 8.785 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.6816, allocations: 446.5 kB / 0.5702 GB, free: 8.301 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.682, allocations: 0.7558 MB / 0.5709 GB, free: 7.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.336e-05/0.6821, allocations: 19.44 kB / 0.571 GB, free: 7.5 MB / 410.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6821, allocations: 0 / 0.571 GB, free: 7.5 MB / 410.7 MB Notification: Performance of Templates: time 0.005703/0.6878, allocations: 2.179 MB / 0.5731 GB, free: 5.32 MB / 410.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)