Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.002477/0.002477, allocations: 178.6 kB / 7.455 MB, free: 2.508 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.184 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.0008822/0.0008822, allocations: 104.6 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.441/0.441, allocations: 78.92 MB / 409.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1331/0.5741, allocations: 75.66 MB / 485.5 MB, free: 3.609 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.8606, allocations: 69.49 MB / 0.5419 GB, free: 20.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.9739, allocations: 97.59 MB / 0.6373 GB, free: 6.355 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.9742, allocations: 83.95 kB / 0.6373 GB, free: 6.273 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.09519/1.069, allocations: 34.33 MB / 0.6709 GB, free: 3.617 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/1.069, allocations: 16 kB / 0.6709 GB, free: 3.602 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003737/1.073, allocations: 0.5603 MB / 0.6714 GB, free: 3.039 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/1.075, allocations: 0.7196 MB / 0.6721 GB, free: 2.266 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003122/1.075, allocations: 244.2 kB / 0.6724 GB, free: 1.992 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/1.075, allocations: 40 kB / 0.6724 GB, free: 1.953 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001614/1.077, allocations: 0.7499 MB / 0.6731 GB, free: 1.203 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/1.079, allocations: 0.9006 MB / 0.674 GB, free: 288 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/1.079, allocations: 0 / 0.674 GB, free: 288 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.121e-05/1.079, allocations: 0 / 0.674 GB, free: 288 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/1.079, allocations: 16 kB / 0.674 GB, free: 272 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1738/1.253, allocations: 3.502 MB / 0.6774 GB, free: 142 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009496/1.254, allocations: 0.58 MB / 0.678 GB, free: 142 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005962/1.254, allocations: 492.3 kB / 0.6785 GB, free: 141.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/1.254, allocations: 20.38 kB / 0.6785 GB, free: 141.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/1.254, allocations: 45.91 kB / 0.6785 GB, free: 141.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 2.545e-06/1.254, allocations: 0 / 0.6785 GB, free: 141.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01186/1.266, allocations: 4.092 MB / 0.6825 GB, free: 141.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/1.266, allocations: 92.62 kB / 0.6826 GB, free: 141.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009228/1.267, allocations: 0.7189 MB / 0.6833 GB, free: 141.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/1.267, allocations: 29.7 kB / 0.6834 GB, free: 141.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/1.268, allocations: 297.9 kB / 0.6836 GB, free: 141.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002808/1.268, allocations: 288.7 kB / 0.6839 GB, free: 141.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/1.268, allocations: 0 / 0.6839 GB, free: 141.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.317e-05/1.268, allocations: 342.6 kB / 0.6842 GB, free: 140.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005554/1.269, allocations: 378.8 kB / 0.6846 GB, free: 140.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/1.269, allocations: 0.5442 MB / 0.6851 GB, free: 140.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006201/1.27, allocations: 435.7 kB / 0.6856 GB, free: 140.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.27, allocations: 3.688 kB / 0.6856 GB, free: 140.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01156/1.282, allocations: 4.059 MB / 0.6895 GB, free: 140.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/1.282, allocations: 6.531 kB / 0.6895 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/1.282, allocations: 3.312 kB / 0.6895 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004864/1.286, allocations: 1.506 MB / 0.691 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/1.287, allocations: 150.3 kB / 0.6911 GB, free: 140.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/1.299, allocations: 5.845 MB / 0.6969 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/1.301, allocations: 157.4 kB / 0.697 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/1.301, allocations: 33.75 kB / 0.697 GB, free: 138.7 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 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 order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003952/1.301, allocations: 138.1 kB / 0.6972 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.303, allocations: 311.3 kB / 0.6975 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/1.315, allocations: 4.005 MB / 0.7014 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/1.316, allocations: 10.19 kB / 0.7014 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-05/1.316, allocations: 9.812 kB / 0.7014 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-05/1.316, allocations: 4.969 kB / 0.7014 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.33, allocations: 5.194 MB / 0.7065 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/1.33, allocations: 0 / 0.7065 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008263/1.331, allocations: 117 kB / 0.7066 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005061/1.336, allocations: 1.491 MB / 0.708 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001867/1.336, allocations: 7 kB / 0.708 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/1.349, allocations: 6.858 MB / 0.7147 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/1.349, allocations: 0 / 0.7147 GB, free: 134.4 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01383/1.363, allocations: 4.877 MB / 0.7195 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01579/1.379, allocations: 5.915 MB / 0.7253 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005553/1.38, allocations: 216.8 kB / 0.7255 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004292/1.38, allocations: 0.6094 kB / 0.7255 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/1.381, allocations: 118.6 kB / 0.7256 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003397/1.382, allocations: 102.5 kB / 0.7257 GB, free: 130.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.382, allocations: 22.91 kB / 0.7257 GB, free: 130.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0009537/1.383, allocations: 0.5524 MB / 0.7263 GB, free: 130.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002364/1.385, allocations: 366.6 kB / 0.7266 GB, free: 130.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(19,24.4%) 13} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003492/1.386, allocations: 135.2 kB / 0.7267 GB, free: 130.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005034/1.391, allocations: 1.759 MB / 0.7285 GB, free: 129.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.391, allocations: 0 / 0.7285 GB, free: 129.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003816/1.395, allocations: 1.266 MB / 0.7297 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/1.396, allocations: 337.3 kB / 0.73 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005449/1.402, allocations: 1.554 MB / 0.7315 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009213/1.403, allocations: 1.165 MB / 0.7327 GB, free: 127.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/1.403, allocations: 0 / 0.7327 GB, free: 127.4 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)