Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002454/0.002459, allocations: 186.4 kB / 7.799 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001283/0.001283, allocations: 92.25 kB / 261.4 MB, free: 13.62 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.2708/0.2708, allocations: 37.98 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.109e-05/1.159e-05, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 56.32 MB / 465.6 MB, free: 6.848 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4643, allocations: 97.17 MB / 0.5496 GB, free: 13.64 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003863/0.4648, allocations: 83.95 kB / 0.5497 GB, free: 13.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1119/0.5767, allocations: 23.53 MB / 0.5727 GB, free: 5.766 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.857e-05/0.5768, allocations: 8 kB / 0.5727 GB, free: 5.758 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00179/0.5786, allocations: 0.6669 MB / 0.5733 GB, free: 5.047 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5787, allocations: 8.031 kB / 0.5733 GB, free: 5.039 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.5817, allocations: 223 kB / 0.5735 GB, free: 4.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.5828, allocations: 366.2 kB / 0.5739 GB, free: 4.426 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.5829, allocations: 12 kB / 0.5739 GB, free: 4.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.583, allocations: 27.91 kB / 0.5739 GB, free: 4.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001302/0.5843, allocations: 453.8 kB / 0.5744 GB, free: 3.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.5858, allocations: 0.558 MB / 0.5749 GB, free: 3.359 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.5858, allocations: 0 / 0.5749 GB, free: 3.359 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.5859, allocations: 4 kB / 0.5749 GB, free: 3.355 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002384/0.5861, allocations: 44.88 kB / 0.575 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005632/0.5918, allocations: 2.228 MB / 0.5771 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.5929, allocations: 473.6 kB / 0.5776 GB, free: 484 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005703/0.5935, allocations: 235.7 kB / 0.5778 GB, free: 244 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.151e-05/0.5936, allocations: 11.98 kB / 0.5778 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.5937, allocations: 38.56 kB / 0.5779 GB, free: 184 kB / 410.7 MB Notification: Performance of pre-optimization done (n=44): time 3.636e-06/0.5937, allocations: 3.938 kB / 0.5779 GB, free: 180 kB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003731/0.5974, allocations: 1.24 MB / 0.5791 GB, free: 14.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.5975, allocations: 85.14 kB / 0.5792 GB, free: 14.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.5978, allocations: 208.9 kB / 0.5794 GB, free: 14.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.5979, allocations: 25.7 kB / 0.5794 GB, free: 14.53 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.5981, allocations: 254.4 kB / 0.5796 GB, free: 14.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.5983, allocations: 153.8 kB / 0.5798 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.5983, allocations: 0 / 0.5798 GB, free: 14.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.5985, allocations: 330.8 kB / 0.5801 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004912/0.599, allocations: 172.9 kB / 0.5802 GB, free: 13.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005497/0.5995, allocations: 282.5 kB / 0.5805 GB, free: 13.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006104/0.6001, allocations: 225.4 kB / 0.5807 GB, free: 13.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.6002, allocations: 0 / 0.5807 GB, free: 13.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00209/0.6023, allocations: 0.6345 MB / 0.5814 GB, free: 12.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.6023, allocations: 4.438 kB / 0.5814 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.6023, allocations: 4 kB / 0.5814 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000953/0.6033, allocations: 160.7 kB / 0.5815 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/0.6042, allocations: 95.83 kB / 0.5816 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005386/0.6096, allocations: 2.287 MB / 0.5838 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004833/0.6101, allocations: 19.83 kB / 0.5839 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-05/0.6102, allocations: 19.98 kB / 0.5839 GB, free: 9.742 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedLoad.terminal.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.6104, allocations: 41.59 kB / 0.5839 GB, free: 9.695 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.6106, allocations: 43.56 kB / 0.584 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.6127, allocations: 0.6085 MB / 0.5846 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.6127, allocations: 8 kB / 0.5846 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.6127, allocations: 4 kB / 0.5846 GB, free: 9.023 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.6128, allocations: 0 / 0.5846 GB, free: 9.023 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004094/0.6169, allocations: 1.329 MB / 0.5859 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.6169, allocations: 0 / 0.5859 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008188/0.6177, allocations: 87.95 kB / 0.5859 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008292/0.6186, allocations: 128.7 kB / 0.5861 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.816e-05/0.6186, allocations: 7.906 kB / 0.5861 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/0.6232, allocations: 2.146 MB / 0.5882 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.6232, allocations: 160 / 0.5882 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002565/0.6258, allocations: 0.9894 MB / 0.5891 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.626, allocations: 108.7 kB / 0.5892 GB, free: 3.984 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.919e-05/0.6261, allocations: 11.98 kB / 0.5893 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003902/0.6265, allocations: 4 kB / 0.5893 GB, free: 3.969 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.6266, allocations: 27.86 kB / 0.5893 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.6266, allocations: 16 kB / 0.5893 GB, free: 3.926 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002263/0.6269, allocations: 157.2 kB / 0.5894 GB, free: 3.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008343/0.6277, allocations: 128 kB / 0.5896 GB, free: 3.645 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002015/0.6279, allocations: 107.2 kB / 0.5897 GB, free: 3.531 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.6301, allocations: 0.6569 MB / 0.5903 GB, free: 2.863 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6301, allocations: 0 / 0.5903 GB, free: 2.863 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.6313, allocations: 406.7 kB / 0.5907 GB, free: 2.457 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.6319, allocations: 40.47 kB / 0.5907 GB, free: 2.418 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.6347, allocations: 0.9616 MB / 0.5917 GB, free: 1.422 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008193/0.6355, allocations: 0.9214 MB / 0.5926 GB, free: 484 kB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6356, allocations: 4 kB / 0.5926 GB, free: 480 kB / 426.7 MB Notification: Performance of Templates: time 0.01459/0.6502, allocations: 6.822 MB / 0.5992 GB, free: 9.633 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)