Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency") [: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.001721/0.001721, allocations: 189.5 kB / 7.803 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.901/1.901, allocations: 205.2 MB / 213.4 MB, free: 13.9 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.001312/0.001311, allocations: 89.34 kB / 261.4 MB, free: 13.6 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.2791/0.2791, allocations: 37.97 MB / 347.3 MB, free: 7.523 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.314e-06/7.504e-06, allocations: 0 / 409.3 MB, free: 47.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1181, allocations: 56.31 MB / 465.6 MB, free: 6.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3385/0.4566, allocations: 94.34 MB / 0.5468 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/0.457, allocations: 79.95 kB / 0.5469 GB, free: 480 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.04551/0.5025, allocations: 9.81 MB / 0.5565 GB, free: 6.555 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.129e-05/0.5026, allocations: 24.11 kB / 0.5565 GB, free: 6.531 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001566/0.5042, allocations: 0.6676 MB / 0.5572 GB, free: 5.812 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.5043, allocations: 8.031 kB / 0.5572 GB, free: 5.805 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.5045, allocations: 55.34 kB / 0.5572 GB, free: 5.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/0.5086, allocations: 1.018 MB / 0.5582 GB, free: 4.695 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.5087, allocations: 12 kB / 0.5582 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.722e-05/0.5088, allocations: 20 kB / 0.5583 GB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008733/0.5097, allocations: 277.5 kB / 0.5585 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009631/0.5107, allocations: 403 kB / 0.5589 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.5107, allocations: 7.906 kB / 0.5589 GB, free: 3.953 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.5108, allocations: 0 / 0.5589 GB, free: 3.953 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.5108, allocations: 8 kB / 0.5589 GB, free: 3.945 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00312/0.5139, allocations: 1.698 MB / 0.5606 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.5143, allocations: 115 kB / 0.5607 GB, free: 2.008 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.5144, allocations: 54.58 kB / 0.5607 GB, free: 1.945 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.5145, allocations: 4 kB / 0.5607 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.5145, allocations: 38.5 kB / 0.5608 GB, free: 1.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 2.675e-06/0.5145, allocations: 0 / 0.5608 GB, free: 1.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.001233/0.5158, allocations: 0.5414 MB / 0.5613 GB, free: 1.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.5158, allocations: 102.8 kB / 0.5614 GB, free: 1.172 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000471/0.5163, allocations: 280.9 kB / 0.5617 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.5164, allocations: 33.64 kB / 0.5617 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.5165, allocations: 285.6 kB / 0.562 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.262e-05/0.5166, allocations: 55.28 kB / 0.562 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.5167, allocations: 0 / 0.562 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5168, allocations: 326.7 kB / 0.5623 GB, free: 196 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.5169, allocations: 40 kB / 0.5624 GB, free: 156 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.5172, allocations: 183.3 kB / 0.5626 GB, free: 15.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.5174, allocations: 80.05 kB / 0.5626 GB, free: 15.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5175, allocations: 0 / 0.5626 GB, free: 15.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006109/0.5181, allocations: 225.3 kB / 0.5628 GB, free: 15.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.5181, allocations: 6.5 kB / 0.5629 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.5181, allocations: 7.938 kB / 0.5629 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.985e-05/0.5182, allocations: 8 kB / 0.5629 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/0.5187, allocations: 76.06 kB / 0.5629 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.5187, allocations: 7.938 kB / 0.5629 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.519, allocations: 12.47 kB / 0.563 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.519, allocations: 16 kB / 0.563 GB, free: 15.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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 8.815e-05/0.5191, allocations: 45.53 kB / 0.563 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.5193, allocations: 35.53 kB / 0.5631 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/0.5197, allocations: 148.6 kB / 0.5632 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.5197, allocations: 7.906 kB / 0.5632 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5198, allocations: 3.984 kB / 0.5632 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.5198, allocations: 4 kB / 0.5632 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009305/0.5207, allocations: 479.7 kB / 0.5637 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5207, allocations: 0 / 0.5637 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.5211, allocations: 35.92 kB / 0.5637 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.5211, allocations: 0 / 0.5637 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.5212, allocations: 8 kB / 0.5637 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.5212, allocations: 0 / 0.5637 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.5212, allocations: 7.984 kB / 0.5637 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006055/0.5218, allocations: 411.8 kB / 0.5641 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.522, allocations: 112.8 kB / 0.5642 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/0.522, allocations: 0 / 0.5642 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.5223, allocations: 0 / 0.5642 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.5224, allocations: 19.98 kB / 0.5642 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.5224, allocations: 4 kB / 0.5642 GB, free: 14.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003402/0.5228, allocations: 219.2 kB / 0.5644 GB, free: 13.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006126/0.5234, allocations: 68 kB / 0.5645 GB, free: 13.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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.0001726/0.5236, allocations: 99.19 kB / 0.5646 GB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004025/0.524, allocations: 140.7 kB / 0.5647 GB, free: 13.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.524, allocations: 0 / 0.5647 GB, free: 13.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.5242, allocations: 51.92 kB / 0.5648 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.525, allocations: 73.67 kB / 0.5649 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.527, allocations: 0.6726 MB / 0.5655 GB, free: 12.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006557/0.5277, allocations: 0.8772 MB / 0.5664 GB, free: 11.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5277, allocations: 0 / 0.5664 GB, free: 11.79 MB / 410.7 MB Notification: Performance of Templates: time 0.01093/0.5387, allocations: 4.473 MB / 0.5707 GB, free: 7.324 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)