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.002478/0.002478, allocations: 182.3 kB / 15.76 MB, free: 6.34 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 2.021/2.021, allocations: 205.4 MB / 221.9 MB, free: 13.75 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.001646/0.001646, allocations: 94.8 kB / 270.2 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2643/0.2643, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007098/0.0007098, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1233, allocations: 56.32 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5328/0.6562, allocations: 94.41 MB / 0.56 GB, free: 5.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.6565, allocations: 89.64 kB / 0.5601 GB, free: 5.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0373/0.6939, allocations: 9.843 MB / 0.5697 GB, free: 13.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6939, allocations: 0 / 0.5697 GB, free: 13.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.6939, allocations: 7.938 kB / 0.5697 GB, free: 13.39 MB / 378.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.0009037/0.6949, allocations: 489.2 kB / 0.5702 GB, free: 12.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.6949, allocations: 8.031 kB / 0.5702 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/0.696, allocations: 91.58 kB / 0.5703 GB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.6966, allocations: 274 kB / 0.5705 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.6966, allocations: 14.2 kB / 0.5706 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.792e-05/0.6967, allocations: 14.94 kB / 0.5706 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/0.6973, allocations: 259.4 kB / 0.5708 GB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.322e-05/0.6974, allocations: 7.906 kB / 0.5708 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.6974, allocations: 7.562 kB / 0.5708 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.6975, allocations: 12.33 kB / 0.5708 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000551/0.698, allocations: 212.2 kB / 0.571 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.7004, allocations: 1.207 MB / 0.5722 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.7007, allocations: 123.8 kB / 0.5723 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.7007, allocations: 4.062 kB / 0.5723 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.7008, allocations: 34.56 kB / 0.5724 GB, free: 10.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 6.823e-06/0.7008, allocations: 3.984 kB / 0.5724 GB, free: 10.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005229/0.7013, allocations: 165 kB / 0.5725 GB, free: 10.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.7014, allocations: 77.11 kB / 0.5726 GB, free: 10.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.7017, allocations: 187.1 kB / 0.5728 GB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.7017, allocations: 28.77 kB / 0.5728 GB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.7019, allocations: 211.7 kB / 0.573 GB, free: 10.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.29e-05/0.7019, allocations: 42.52 kB / 0.5731 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.702, allocations: 3.812 kB / 0.5731 GB, free: 10.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.7021, allocations: 318.8 kB / 0.5734 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.7023, allocations: 45.72 kB / 0.5734 GB, free: 9.773 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.7024, allocations: 121 kB / 0.5735 GB, free: 9.637 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.7026, allocations: 56.3 kB / 0.5736 GB, free: 9.602 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.7026, allocations: 4 kB / 0.5736 GB, free: 9.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004466/0.7031, allocations: 188.2 kB / 0.5738 GB, free: 9.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.7031, allocations: 11.94 kB / 0.5738 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.7032, allocations: 4 kB / 0.5738 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.7032, allocations: 7.938 kB / 0.5738 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003754/0.7036, allocations: 47.3 kB / 0.5738 GB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.7036, allocations: 7.938 kB / 0.5738 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.7038, allocations: 19.73 kB / 0.5739 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.7039, allocations: 11.84 kB / 0.5739 GB, free: 9.344 MB / 378.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): 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.0002089/0.7041, allocations: 156.1 kB / 0.574 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.633e-05/0.7041, allocations: 15.81 kB / 0.574 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.7045, allocations: 131.2 kB / 0.5742 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.7045, allocations: 7.938 kB / 0.5742 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.7045, allocations: 0 / 0.5742 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.7046, allocations: 0 / 0.5742 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.7057, allocations: 0.5361 MB / 0.5747 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.7058, allocations: 0 / 0.5747 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002743/0.706, allocations: 27.98 kB / 0.5747 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/0.7061, allocations: 4 kB / 0.5747 GB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.7061, allocations: 7.125 kB / 0.5747 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.7061, allocations: 3.938 kB / 0.5747 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.7061, allocations: 8.188 kB / 0.5747 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006436/0.7068, allocations: 406.1 kB / 0.5751 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.7069, allocations: 100.8 kB / 0.5752 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.707, allocations: 7.75 kB / 0.5752 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.7071, allocations: 4.062 kB / 0.5752 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.7072, allocations: 19.81 kB / 0.5753 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.7072, allocations: 4 kB / 0.5753 GB, free: 7.922 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002009/0.7074, allocations: 148.7 kB / 0.5754 GB, free: 7.797 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7075, allocations: 0 / 0.5754 GB, free: 7.797 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004898/0.708, allocations: 46.88 kB / 0.5754 GB, free: 7.754 MB / 378.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 () * 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 0.0001688/0.7081, allocations: 114.6 kB / 0.5756 GB, free: 7.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003304/0.7085, allocations: 110.5 kB / 0.5757 GB, free: 7.555 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7085, allocations: 0 / 0.5757 GB, free: 7.555 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.7086, allocations: 58.03 kB / 0.5757 GB, free: 7.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.7091, allocations: 32.11 kB / 0.5757 GB, free: 7.484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.7105, allocations: 0.6693 MB / 0.5764 GB, free: 6.797 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.7109, allocations: 0.7471 MB / 0.5771 GB, free: 6.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.711, allocations: 19.44 kB / 0.5771 GB, free: 6.004 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.711, allocations: 0 / 0.5771 GB, free: 6.004 MB / 378.7 MB Notification: Performance of Templates: time 0.005837/0.7169, allocations: 2.193 MB / 0.5793 GB, free: 3.832 MB / 378.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)