Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002264/0.002264, allocations: 175.7 kB / 7.46 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 221.4 MB / 229.3 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009113/0.0009113, allocations: 98.78 kB / 280.1 MB, free: 1.316 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3915/0.3915, allocations: 78.92 MB / 409.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.434e-06, allocations: 4 kB / 485.4 MB, free: 3.66 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2649, allocations: 69.5 MB / 0.5419 GB, free: 20.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1139/0.3789, allocations: 97.96 MB / 0.6375 GB, free: 6.027 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.3792, allocations: 79.94 kB / 0.6376 GB, free: 5.949 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.08324/0.4625, allocations: 29.49 MB / 0.6664 GB, free: 8.254 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.476e-05/0.4626, allocations: 23.94 kB / 0.6664 GB, free: 8.23 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.004534/0.4671, allocations: 1.734 MB / 0.6681 GB, free: 6.438 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.4672, allocations: 12.03 kB / 0.6681 GB, free: 6.426 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003702/0.4709, allocations: 0.5758 MB / 0.6687 GB, free: 5.848 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.4724, allocations: 0.7723 MB / 0.6694 GB, free: 5.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.4727, allocations: 214.4 kB / 0.6696 GB, free: 4.781 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.4729, allocations: 47.98 kB / 0.6697 GB, free: 4.734 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001546/0.4744, allocations: 0.7928 MB / 0.6705 GB, free: 3.941 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.4759, allocations: 0.8337 MB / 0.6713 GB, free: 3.094 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.476, allocations: 0 / 0.6713 GB, free: 3.094 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-05/0.4761, allocations: 0 / 0.6713 GB, free: 3.094 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.705e-05/0.4761, allocations: 20 kB / 0.6713 GB, free: 3.074 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1561/0.6323, allocations: 3.788 MB / 0.675 GB, free: 141.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.6334, allocations: 0.594 MB / 0.6756 GB, free: 141.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.6341, allocations: 0.5064 MB / 0.6761 GB, free: 141.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.6342, allocations: 22.03 kB / 0.6761 GB, free: 141.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.6342, allocations: 49.41 kB / 0.6761 GB, free: 141 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 4.017e-06/0.6342, allocations: 0 / 0.6761 GB, free: 141 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01191/0.6461, allocations: 4.037 MB / 0.6801 GB, free: 141 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.6462, allocations: 143.2 kB / 0.6802 GB, free: 140.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009958/0.6472, allocations: 0.8123 MB / 0.681 GB, free: 140.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.6473, allocations: 25.7 kB / 0.681 GB, free: 140.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.6475, allocations: 319.3 kB / 0.6813 GB, free: 140.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/0.6478, allocations: 318.5 kB / 0.6816 GB, free: 140.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.6478, allocations: 3.281 kB / 0.6816 GB, free: 140.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.506e-05/0.6479, allocations: 342.3 kB / 0.682 GB, free: 140 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006656/0.6486, allocations: 426.6 kB / 0.6824 GB, free: 140 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006801/0.6493, allocations: 0.5446 MB / 0.6829 GB, free: 139.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.65, allocations: 485.3 kB / 0.6834 GB, free: 139.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.65, allocations: 0.7812 kB / 0.6834 GB, free: 139.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.01193/0.6619, allocations: 4.177 MB / 0.6875 GB, free: 139.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.6621, allocations: 1.145 MB / 0.6886 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.6621, allocations: 3.469 kB / 0.6886 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005065/0.6672, allocations: 1.516 MB / 0.6901 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008424/0.6681, allocations: 171.2 kB / 0.6902 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.6803, allocations: 5.815 MB / 0.6959 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.6819, allocations: 179.6 kB / 0.6961 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.682, allocations: 34.7 kB / 0.6961 GB, free: 136.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/0.682, allocations: 7.812 kB / 0.6961 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01246/0.6945, allocations: 4.018 MB / 0.7 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.6945, allocations: 3.938 kB / 0.7 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005396/0.6999, allocations: 1.516 MB / 0.7015 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009315/0.7009, allocations: 163.4 kB / 0.7017 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.7138, allocations: 5.807 MB / 0.7073 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.7154, allocations: 168.2 kB / 0.7075 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.7156, allocations: 34.94 kB / 0.7075 GB, free: 134.9 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order3.delta:VARIABLE(start = order3.delta0 unit = "rad" ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 2 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.7159, allocations: 160.7 kB / 0.7077 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.7162, allocations: 126 kB / 0.7078 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/0.7282, allocations: 4.125 MB / 0.7118 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.7282, allocations: 9.062 kB / 0.7118 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.7282, allocations: 8.969 kB / 0.7119 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.487e-05/0.7283, allocations: 6.469 kB / 0.7119 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.7419, allocations: 5.603 MB / 0.7173 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.7419, allocations: 6.172 kB / 0.7173 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.7427, allocations: 115 kB / 0.7174 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004536/0.7473, allocations: 1.463 MB / 0.7189 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/0.7475, allocations: 13.91 kB / 0.7189 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/0.7581, allocations: 5.206 MB / 0.724 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.7582, allocations: 0 / 0.724 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01385/0.772, allocations: 4.857 MB / 0.7287 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005922/0.7726, allocations: 220.1 kB / 0.7289 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.7729, allocations: 8.062 kB / 0.7289 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.7742, allocations: 138.3 kB / 0.7291 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/0.7745, allocations: 102.8 kB / 0.7292 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.071e-05/0.7746, allocations: 27.28 kB / 0.7292 GB, free: 128.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0009432/0.7756, allocations: 0.6195 MB / 0.7298 GB, free: 128.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001904/0.7775, allocations: 0.5985 MB / 0.7304 GB, free: 128 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,aVRTypeII.firstOrder.y,aVRTypeII.firstOrder2.y,aVRTypeII.transferFunction.x_scaled[1],aVRTypeII.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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 {(20,23.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003214/0.7778, allocations: 144.7 kB / 0.7305 GB, free: 127.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008583/0.7864, allocations: 3.396 MB / 0.7338 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7864, allocations: 0 / 0.7338 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003599/0.79, allocations: 1.369 MB / 0.7352 GB, free: 124.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007592/0.7908, allocations: 92.41 kB / 0.7353 GB, free: 124.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004133/0.7949, allocations: 1.726 MB / 0.7369 GB, free: 122.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007085/0.7957, allocations: 1.192 MB / 0.7381 GB, free: 121.8 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7957, allocations: 0 / 0.7381 GB, free: 121.8 MB / 490.7 MB Notification: Performance of Templates: time 0.03608/0.8318, allocations: 28.6 MB / 0.766 GB, free: 100.6 MB / 490.7 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRI.pipe 2>&1)