Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.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.AC3ph.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance") translateModel(PowerSystems.Examples.AC3ph.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance") [: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.002576/0.002576, allocations: 188.4 kB / 7.804 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.874/1.874, 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.001299/0.001299, allocations: 90.23 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.2747/0.2747, allocations: 37.98 MB / 347.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.058e-05, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 56.32 MB / 465.6 MB, free: 6.848 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.4559, allocations: 100.1 MB / 0.5525 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/0.4563, allocations: 91.94 kB / 0.5526 GB, free: 10.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05813/0.5144, allocations: 12.14 MB / 0.5644 GB, free: 14.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.033e-05/0.5145, allocations: 12 kB / 0.5645 GB, free: 14.36 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001746/0.5163, allocations: 0.6684 MB / 0.5651 GB, free: 13.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.5163, allocations: 8.031 kB / 0.5651 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.5174, allocations: 95.28 kB / 0.5652 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00376/0.5212, allocations: 0.8533 MB / 0.566 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.5213, allocations: 12 kB / 0.5661 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.5214, allocations: 28.84 kB / 0.5661 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001164/0.5226, allocations: 377.8 kB / 0.5664 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.524, allocations: 0.5685 MB / 0.567 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.5241, allocations: 7.938 kB / 0.567 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.753e-05/0.5241, allocations: 0 / 0.567 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-05/0.5242, allocations: 24.77 kB / 0.567 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005569/0.5298, allocations: 2.847 MB / 0.5698 GB, free: 8.586 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.5304, allocations: 197 kB / 0.57 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.5307, allocations: 125.8 kB / 0.5701 GB, free: 8.246 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.5308, allocations: 7.938 kB / 0.5701 GB, free: 8.238 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.5308, allocations: 38.56 kB / 0.5702 GB, free: 8.191 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 4.097e-06/0.5308, allocations: 0 / 0.5702 GB, free: 8.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.002436/0.5333, allocations: 0.8501 MB / 0.571 GB, free: 7.285 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.5334, allocations: 81.3 kB / 0.5711 GB, free: 7.188 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005079/0.5339, allocations: 275.4 kB / 0.5713 GB, free: 6.918 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.534, allocations: 25.7 kB / 0.5714 GB, free: 6.887 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.5342, allocations: 313.6 kB / 0.5717 GB, free: 6.574 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.5343, allocations: 86.75 kB / 0.5717 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.5343, allocations: 0 / 0.5717 GB, free: 6.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.5345, allocations: 338.8 kB / 0.5721 GB, free: 6.148 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.5349, allocations: 136.8 kB / 0.5722 GB, free: 6.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/0.5354, allocations: 316.4 kB / 0.5725 GB, free: 5.625 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006067/0.536, allocations: 210.3 kB / 0.5727 GB, free: 5.422 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.536, allocations: 0 / 0.5727 GB, free: 5.422 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001912/0.538, allocations: 0.5344 MB / 0.5732 GB, free: 4.883 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.538, allocations: 4 kB / 0.5732 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001257/0.5393, allocations: 324.5 kB / 0.5735 GB, free: 4.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005081/0.5399, allocations: 80.73 kB / 0.5736 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007159/0.5406, allocations: 83.89 kB / 0.5737 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.5433, allocations: 1.537 MB / 0.5752 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/0.5438, allocations: 12.03 kB / 0.5752 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.5438, allocations: 24 kB / 0.5752 GB, free: 2.703 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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): 46 * Array equations: 1 * 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: 1 {(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.544, allocations: 41.52 kB / 0.5753 GB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.5441, allocations: 35.59 kB / 0.5753 GB, free: 2.621 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.5453, allocations: 348.8 kB / 0.5756 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/0.5453, allocations: 4 kB / 0.5756 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5453, allocations: 0 / 0.5756 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.5454, allocations: 3.984 kB / 0.5756 GB, free: 2.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.5476, allocations: 0.7945 MB / 0.5764 GB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.5476, allocations: 3.984 kB / 0.5764 GB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/0.5483, allocations: 55.97 kB / 0.5765 GB, free: 1.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.5483, allocations: 3.906 kB / 0.5765 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.5484, allocations: 4 kB / 0.5765 GB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/0.5484, allocations: 7.938 kB / 0.5765 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.5484, allocations: 0 / 0.5765 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001263/0.5497, allocations: 0.5807 MB / 0.5771 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.5499, allocations: 112.6 kB / 0.5772 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.938e-05/0.55, allocations: 4 kB / 0.5772 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.5503, allocations: 7.984 kB / 0.5772 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.5504, allocations: 15.98 kB / 0.5772 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.5504, allocations: 8 kB / 0.5772 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003261/0.5508, allocations: 207 kB / 0.5774 GB, free: 372 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007016/0.5515, allocations: 107.9 kB / 0.5775 GB, free: 264 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 1 * 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.0002545/0.5518, allocations: 119.2 kB / 0.5776 GB, free: 132 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.5532, allocations: 482.8 kB / 0.5781 GB, free: 15.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.5533, allocations: 4.562 kB / 0.5781 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.5536, allocations: 139.8 kB / 0.5782 GB, free: 15.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.5543, allocations: 61.08 kB / 0.5783 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.5567, allocations: 0.8205 MB / 0.5791 GB, free: 14.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008469/0.5576, allocations: 0.9116 MB / 0.58 GB, free: 13.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.133e-06/0.5576, allocations: 0 / 0.58 GB, free: 13.64 MB / 426.7 MB Notification: Performance of Templates: time 0.0137/0.5713, allocations: 5.756 MB / 0.5856 GB, free: 7.883 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)