Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) [: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.00284/0.00284, allocations: 182.8 kB / 7.461 MB, free: 2.5 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.197/1.197, allocations: 221.4 MB / 229.3 MB, free: 3.004 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.0008715/0.0008714, allocations: 102.8 kB / 280.1 MB, free: 1.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.434/0.434, allocations: 78.06 MB / 409 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1603/0.5944, allocations: 75.48 MB / 484.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.9777, allocations: 69.35 MB / 0.5408 GB, free: 21.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/1.107, allocations: 98.06 MB / 0.6366 GB, free: 6.727 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/1.107, allocations: 83.94 kB / 0.6367 GB, free: 6.645 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.1083/1.216, allocations: 37.45 MB / 0.6732 GB, free: 0.875 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/1.216, allocations: 8 kB / 0.6732 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004241/1.22, allocations: 0.5836 MB / 0.6738 GB, free: 288 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2321/1.452, allocations: 0.7811 MB / 0.6746 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003147/1.452, allocations: 238.1 kB / 0.6748 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003347/1.453, allocations: 50.44 kB / 0.6748 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00181/1.455, allocations: 0.7959 MB / 0.6756 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/1.456, allocations: 0.8346 MB / 0.6764 GB, free: 141.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/1.456, allocations: 0 / 0.6764 GB, free: 141.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.735e-05/1.456, allocations: 0 / 0.6764 GB, free: 141.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/1.456, allocations: 23.8 kB / 0.6765 GB, free: 141.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006929/1.463, allocations: 3.739 MB / 0.6801 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/1.465, allocations: 0.6116 MB / 0.6807 GB, free: 140.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007961/1.465, allocations: 0.5078 MB / 0.6812 GB, free: 140.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/1.466, allocations: 29.42 kB / 0.6812 GB, free: 140.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/1.467, allocations: 0.6323 MB / 0.6818 GB, free: 140.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 4.008e-06/1.467, allocations: 0 / 0.6818 GB, free: 140.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01335/1.48, allocations: 4.168 MB / 0.6859 GB, free: 140 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/1.48, allocations: 113.5 kB / 0.686 GB, free: 139.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/1.482, allocations: 0.8118 MB / 0.6868 GB, free: 139.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002162/1.482, allocations: 29.3 kB / 0.6868 GB, free: 139.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/1.482, allocations: 315.6 kB / 0.6871 GB, free: 139.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/1.483, allocations: 338.2 kB / 0.6875 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/1.483, allocations: 0 / 0.6875 GB, free: 139.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.979e-05/1.483, allocations: 349 kB / 0.6878 GB, free: 139 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007596/1.484, allocations: 443.5 kB / 0.6882 GB, free: 139 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008245/1.485, allocations: 0.557 MB / 0.6888 GB, free: 138.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008205/1.485, allocations: 494.3 kB / 0.6892 GB, free: 138.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/1.485, allocations: 0 / 0.6892 GB, free: 138.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01236/1.498, allocations: 4.203 MB / 0.6933 GB, free: 138.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/1.498, allocations: 3.844 kB / 0.6934 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/1.498, allocations: 7.75 kB / 0.6934 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005601/1.504, allocations: 1.566 MB / 0.6949 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/1.505, allocations: 183.8 kB / 0.6951 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01472/1.519, allocations: 6.013 MB / 0.7009 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/1.522, allocations: 194.6 kB / 0.7011 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002954/1.522, allocations: 36.81 kB / 0.7012 GB, free: 136.9 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" 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: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * 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 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005872/1.522, allocations: 152.9 kB / 0.7013 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005666/1.523, allocations: 125.1 kB / 0.7014 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.537, allocations: 4.265 MB / 0.7056 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.499e-05/1.537, allocations: 12.16 kB / 0.7056 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.228e-05/1.537, allocations: 7.312 kB / 0.7056 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.732e-05/1.537, allocations: 14.95 kB / 0.7056 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/1.552, allocations: 5.646 MB / 0.7111 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.552, allocations: 3.906 kB / 0.7111 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007751/1.553, allocations: 105.8 kB / 0.7112 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004949/1.558, allocations: 1.532 MB / 0.7127 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002394/1.558, allocations: 13.8 kB / 0.7127 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/1.572, allocations: 7.138 MB / 0.7197 GB, free: 130.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.572, allocations: 0 / 0.7197 GB, free: 130.8 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01399/1.586, allocations: 5.025 MB / 0.7246 GB, free: 129.4 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01684/1.603, allocations: 6.12 MB / 0.7306 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007553/1.604, allocations: 219.6 kB / 0.7308 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006174/1.604, allocations: 3.203 kB / 0.7308 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/1.607, allocations: 141.6 kB / 0.7309 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006813/1.607, allocations: 120 kB / 0.7311 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/1.608, allocations: 24.38 kB / 0.7311 GB, free: 127 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001502/1.609, allocations: 0.6202 MB / 0.7317 GB, free: 126.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002802/1.612, allocations: 391.8 kB / 0.7321 GB, free: 126.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003981/1.612, allocations: 148 kB / 0.7322 GB, free: 126.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005333/1.618, allocations: 1.938 MB / 0.7341 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/1.618, allocations: 0 / 0.7341 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004263/1.622, allocations: 1.481 MB / 0.7355 GB, free: 124.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/1.624, allocations: 94.75 kB / 0.7356 GB, free: 124.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/1.629, allocations: 1.733 MB / 0.7373 GB, free: 122.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009538/1.63, allocations: 1.213 MB / 0.7385 GB, free: 121.6 MB / 490.7 MB Notification: Performance of SimCode: time 7.12e-07/1.63, allocations: 0 / 0.7385 GB, free: 121.6 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)