Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.002406/0.002406, allocations: 183.2 kB / 7.461 MB, free: 2.492 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.255/1.255, allocations: 221.4 MB / 229.3 MB, free: 3 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.0009132/0.0009132, allocations: 101.7 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4477/0.4477, allocations: 78.91 MB / 409.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1695/0.6172, allocations: 75.65 MB / 485.5 MB, free: 3.531 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/1.003, allocations: 69.51 MB / 0.542 GB, free: 21.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1409/1.144, allocations: 99.03 MB / 0.6387 GB, free: 4.926 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/1.144, allocations: 75.95 kB / 0.6387 GB, free: 4.852 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.09862/1.243, allocations: 33.49 MB / 0.6714 GB, free: 3.082 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/1.243, allocations: 12 kB / 0.6715 GB, free: 3.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004196/1.247, allocations: 0.5836 MB / 0.672 GB, free: 2.484 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002265/1.249, allocations: 0.794 MB / 0.6728 GB, free: 1.637 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003672/1.25, allocations: 240.2 kB / 0.673 GB, free: 1.367 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000332/1.25, allocations: 51.91 kB / 0.6731 GB, free: 1.316 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002042/1.252, allocations: 0.8084 MB / 0.6739 GB, free: 0.5078 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2272/1.479, allocations: 0.8401 MB / 0.6747 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.479, allocations: 0 / 0.6747 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.386e-05/1.479, allocations: 3.656 kB / 0.6747 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/1.479, allocations: 18.34 kB / 0.6747 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007413/1.487, allocations: 3.796 MB / 0.6784 GB, free: 139.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/1.488, allocations: 0.6275 MB / 0.679 GB, free: 139.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007238/1.489, allocations: 0.5146 MB / 0.6795 GB, free: 139.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/1.489, allocations: 23.25 kB / 0.6796 GB, free: 139.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009293/1.49, allocations: 0.65 MB / 0.6802 GB, free: 139.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=97): time 3.286e-06/1.49, allocations: 0 / 0.6802 GB, free: 139.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=97): time 0.01268/1.503, allocations: 4.193 MB / 0.6843 GB, free: 139.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/1.503, allocations: 119.1 kB / 0.6844 GB, free: 139.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/1.504, allocations: 0.8415 MB / 0.6852 GB, free: 139.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/1.504, allocations: 32.64 kB / 0.6852 GB, free: 139.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/1.505, allocations: 321.2 kB / 0.6856 GB, free: 139.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/1.505, allocations: 340.9 kB / 0.6859 GB, free: 138.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/1.505, allocations: 0 / 0.6859 GB, free: 138.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.098e-05/1.505, allocations: 349.5 kB / 0.6862 GB, free: 138.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007349/1.506, allocations: 454.5 kB / 0.6866 GB, free: 138.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007945/1.507, allocations: 0.5653 MB / 0.6872 GB, free: 138.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008321/1.508, allocations: 0.4931 MB / 0.6877 GB, free: 138.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/1.508, allocations: 0 / 0.6877 GB, free: 138.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.01241/1.52, allocations: 4.226 MB / 0.6918 GB, free: 138.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/1.52, allocations: 3.719 kB / 0.6918 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/1.52, allocations: 6.875 kB / 0.6918 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005779/1.526, allocations: 1.573 MB / 0.6934 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/1.527, allocations: 203.6 kB / 0.6935 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/1.541, allocations: 5.963 MB / 0.6994 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/1.544, allocations: 190.1 kB / 0.6996 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002445/1.544, allocations: 38.06 kB / 0.6996 GB, free: 136.4 MB / 490.7 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.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 order5.e2d:VARIABLE(start = order5.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real order5.e2q:VARIABLE(start = order5.e2q0 unit = "1" ) "q-axis sub-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 (98): * Single equations (assignments): 95 * 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 {21 12} Notification: Performance of prepare postOptimizeDAE: time 0.000501/1.544, allocations: 161.8 kB / 0.6997 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004598/1.545, allocations: 122.5 kB / 0.6999 GB, free: 136.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.559, allocations: 4.302 MB / 0.7041 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/1.559, allocations: 10.81 kB / 0.7041 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-05/1.559, allocations: 12.7 kB / 0.7041 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.799e-05/1.559, allocations: 5.078 kB / 0.7041 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/1.577, allocations: 5.712 MB / 0.7097 GB, free: 135.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.501e-05/1.577, allocations: 2.938 kB / 0.7097 GB, free: 135.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009254/1.578, allocations: 104.6 kB / 0.7098 GB, free: 135.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00508/1.583, allocations: 1.524 MB / 0.7113 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/1.583, allocations: 9.453 kB / 0.7113 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01416/1.597, allocations: 7.152 MB / 0.7183 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.597, allocations: 0 / 0.7183 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0158/1.613, allocations: 5.067 MB / 0.7232 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01767/1.631, allocations: 6.189 MB / 0.7292 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000664/1.632, allocations: 226.1 kB / 0.7295 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005561/1.632, allocations: 3 kB / 0.7295 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/1.634, allocations: 143.4 kB / 0.7296 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/1.634, allocations: 118.3 kB / 0.7297 GB, free: 127 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/1.635, allocations: 26.75 kB / 0.7297 GB, free: 127 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001232/1.636, allocations: 0.6405 MB / 0.7304 GB, free: 126.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00285/1.639, allocations: 406.7 kB / 0.7307 GB, free: 126.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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.000367/1.639, allocations: 137.5 kB / 0.7309 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005876/1.645, allocations: 1.983 MB / 0.7328 GB, free: 125.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.645, allocations: 1.031 kB / 0.7328 GB, free: 125.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004669/1.65, allocations: 1.488 MB / 0.7343 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/1.651, allocations: 86.38 kB / 0.7344 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007272/1.658, allocations: 1.845 MB / 0.7362 GB, free: 123.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/1.66, allocations: 1.229 MB / 0.7374 GB, free: 122.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.282e-06/1.66, allocations: 4 kB / 0.7374 GB, free: 122.5 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)