Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.003029/0.003029, allocations: 181.2 kB / 7.459 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.223/1.223, allocations: 221.4 MB / 229.3 MB, free: 2.992 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.0009264/0.0009263, allocations: 100.5 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4308/0.4308, allocations: 78.91 MB / 409.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1426/0.5734, allocations: 75.65 MB / 485.5 MB, free: 3.539 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.8691, allocations: 69.5 MB / 0.542 GB, free: 20.63 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.9975, allocations: 98.77 MB / 0.6384 GB, free: 5.051 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.9978, allocations: 83.95 kB / 0.6385 GB, free: 4.969 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.2935/1.291, allocations: 38.03 MB / 0.6756 GB, free: 141.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/1.291, allocations: 11.19 kB / 0.6756 GB, free: 141.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003684/1.295, allocations: 0.5789 MB / 0.6762 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/1.296, allocations: 0.7848 MB / 0.677 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/1.297, allocations: 240.4 kB / 0.6772 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/1.297, allocations: 46.62 kB / 0.6772 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001354/1.298, allocations: 0.7998 MB / 0.678 GB, free: 140.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/1.299, allocations: 0.8303 MB / 0.6788 GB, free: 140.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/1.299, allocations: 3.031 kB / 0.6788 GB, free: 140.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-05/1.3, allocations: 3.25 kB / 0.6788 GB, free: 140.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/1.3, allocations: 20.09 kB / 0.6789 GB, free: 140.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006579/1.306, allocations: 3.769 MB / 0.6825 GB, free: 139.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.307, allocations: 0.6121 MB / 0.6831 GB, free: 139.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007357/1.308, allocations: 0.5065 MB / 0.6836 GB, free: 139.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/1.308, allocations: 19.09 kB / 0.6837 GB, free: 139.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008681/1.309, allocations: 0.6337 MB / 0.6843 GB, free: 139.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.856e-06/1.309, allocations: 0 / 0.6843 GB, free: 139.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01267/1.322, allocations: 4.171 MB / 0.6883 GB, free: 139.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/1.322, allocations: 120.1 kB / 0.6885 GB, free: 139.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/1.324, allocations: 0.8071 MB / 0.6892 GB, free: 139 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002344/1.324, allocations: 29.22 kB / 0.6893 GB, free: 139 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/1.324, allocations: 319.1 kB / 0.6896 GB, free: 138.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003457/1.324, allocations: 331.8 kB / 0.6899 GB, free: 138.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/1.325, allocations: 2.156 kB / 0.6899 GB, free: 138.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.195e-05/1.325, allocations: 348.7 kB / 0.6902 GB, free: 138.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000737/1.325, allocations: 443.7 kB / 0.6907 GB, free: 138.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007384/1.326, allocations: 0.5597 MB / 0.6912 GB, free: 138.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007937/1.327, allocations: 489.6 kB / 0.6917 GB, free: 138.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/1.327, allocations: 3.609 kB / 0.6917 GB, free: 138.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01196/1.339, allocations: 4.202 MB / 0.6958 GB, free: 137.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.339, allocations: 7.531 kB / 0.6958 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/1.339, allocations: 0 / 0.6958 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005611/1.345, allocations: 1.567 MB / 0.6973 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/1.346, allocations: 183.9 kB / 0.6975 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.36, allocations: 6.005 MB / 0.7034 GB, free: 136.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/1.361, allocations: 197.5 kB / 0.7035 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/1.361, allocations: 38.11 kB / 0.7036 GB, free: 136.1 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.0002929/1.362, allocations: 153 kB / 0.7037 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/1.362, allocations: 126.1 kB / 0.7038 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/1.375, allocations: 4.268 MB / 0.708 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/1.375, allocations: 16.5 kB / 0.708 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.375, allocations: 4.469 kB / 0.708 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/1.375, allocations: 4.141 kB / 0.708 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/1.388, allocations: 5.671 MB / 0.7136 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.389, allocations: 3.844 kB / 0.7136 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006896/1.389, allocations: 106.5 kB / 0.7137 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004834/1.394, allocations: 1.551 MB / 0.7152 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/1.394, allocations: 10.66 kB / 0.7152 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/1.407, allocations: 7.082 MB / 0.7221 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.407, allocations: 2.812 kB / 0.7221 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01414/1.421, allocations: 5.018 MB / 0.727 GB, free: 128.5 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01687/1.438, allocations: 6.118 MB / 0.733 GB, free: 126.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006172/1.439, allocations: 227.7 kB / 0.7332 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/1.439, allocations: 10.89 kB / 0.7332 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/1.441, allocations: 137.5 kB / 0.7334 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/1.441, allocations: 114.1 kB / 0.7335 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.442, allocations: 28.03 kB / 0.7335 GB, free: 126 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001449/1.443, allocations: 0.6134 MB / 0.7341 GB, free: 125.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003042/1.446, allocations: 398.7 kB / 0.7345 GB, free: 125.3 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 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004346/1.446, allocations: 140.3 kB / 0.7346 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005139/1.452, allocations: 1.938 MB / 0.7365 GB, free: 123.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.452, allocations: 0 / 0.7365 GB, free: 123.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/1.456, allocations: 1.516 MB / 0.738 GB, free: 122 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/1.457, allocations: 90.67 kB / 0.7381 GB, free: 121.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005533/1.462, allocations: 1.737 MB / 0.7398 GB, free: 120.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009682/1.463, allocations: 1.214 MB / 0.7409 GB, free: 119.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/1.463, allocations: 0 / 0.7409 GB, free: 119.3 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)