Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_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.001889/0.001889, allocations: 183.1 kB / 7.461 MB, free: 2.504 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.029/1.029, allocations: 221.4 MB / 229.3 MB, free: 3.086 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.0008507/0.0008507, allocations: 98.06 kB / 280.1 MB, free: 1.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3477/0.3477, allocations: 78.09 MB / 409 MB, free: 15.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.108/0.4557, allocations: 75.5 MB / 484.5 MB, free: 4.457 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.6702, allocations: 69.34 MB / 0.5408 GB, free: 21.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09295/0.7632, allocations: 96.9 MB / 0.6355 GB, free: 8.008 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001796/0.7634, allocations: 79.95 kB / 0.6356 GB, free: 7.93 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.08485/0.8482, allocations: 33.74 MB / 0.6685 GB, free: 5.879 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.8483, allocations: 12 kB / 0.6685 GB, free: 5.867 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003445/0.8517, allocations: 0.5642 MB / 0.6691 GB, free: 5.301 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.8529, allocations: 0.7042 MB / 0.6698 GB, free: 4.543 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.8532, allocations: 244.1 kB / 0.67 GB, free: 4.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.8534, allocations: 44 kB / 0.67 GB, free: 4.227 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001353/0.8547, allocations: 0.7576 MB / 0.6708 GB, free: 3.469 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.8562, allocations: 0.8972 MB / 0.6716 GB, free: 2.547 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.8562, allocations: 0 / 0.6716 GB, free: 2.547 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.61e-05/0.8563, allocations: 0 / 0.6716 GB, free: 2.547 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.8563, allocations: 16 kB / 0.6717 GB, free: 2.531 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1269/0.9832, allocations: 3.474 MB / 0.6751 GB, free: 143.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009562/0.9842, allocations: 0.59 MB / 0.6756 GB, free: 143.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005762/0.9848, allocations: 490.9 kB / 0.6761 GB, free: 143.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.9849, allocations: 20.91 kB / 0.6761 GB, free: 143.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.9849, allocations: 47.72 kB / 0.6762 GB, free: 143.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 2.655e-06/0.9849, allocations: 0 / 0.6762 GB, free: 143.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.01128/0.9962, allocations: 4.082 MB / 0.6801 GB, free: 143 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.9963, allocations: 101.6 kB / 0.6802 GB, free: 142.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.997, allocations: 0.7204 MB / 0.6809 GB, free: 142.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.997, allocations: 25.7 kB / 0.681 GB, free: 142.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.9971, allocations: 299.9 kB / 0.6813 GB, free: 142.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.9973, allocations: 286.3 kB / 0.6815 GB, free: 142.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.9974, allocations: 0 / 0.6815 GB, free: 142.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.621e-05/0.9975, allocations: 346.2 kB / 0.6819 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.998, allocations: 378 kB / 0.6822 GB, free: 142.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005924/0.9986, allocations: 0.5481 MB / 0.6828 GB, free: 142 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005761/0.9992, allocations: 433.8 kB / 0.6832 GB, free: 142 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.9992, allocations: 3.969 kB / 0.6832 GB, free: 142 MB / 490.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01084/1.01, allocations: 4.064 MB / 0.6871 GB, free: 141.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/1.01, allocations: 6.219 kB / 0.6871 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/1.01, allocations: 3.156 kB / 0.6872 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004607/1.015, allocations: 1.503 MB / 0.6886 GB, free: 141.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/1.015, allocations: 147.8 kB / 0.6888 GB, free: 141.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/1.026, allocations: 5.841 MB / 0.6945 GB, free: 140 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/1.027, allocations: 168.7 kB / 0.6946 GB, free: 140 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.715e-05/1.027, allocations: 33.78 kB / 0.6947 GB, free: 140 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.0002196/1.028, allocations: 126.4 kB / 0.6948 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008079/1.029, allocations: 320.5 kB / 0.6951 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/1.039, allocations: 4.004 MB / 0.699 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/1.039, allocations: 10.06 kB / 0.699 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.039, allocations: 10.31 kB / 0.699 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/1.039, allocations: 3.797 kB / 0.699 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.051, allocations: 5.19 MB / 0.7041 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/1.052, allocations: 0 / 0.7041 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006053/1.052, allocations: 115.6 kB / 0.7042 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004439/1.057, allocations: 1.496 MB / 0.7057 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.495e-05/1.057, allocations: 10.3 kB / 0.7057 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/1.068, allocations: 6.85 MB / 0.7124 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.068, allocations: 3.656 kB / 0.7124 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01182/1.08, allocations: 4.875 MB / 0.7171 GB, free: 134.7 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01266/1.093, allocations: 5.919 MB / 0.7229 GB, free: 132.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/1.093, allocations: 211 kB / 0.7231 GB, free: 132.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/1.093, allocations: 3.719 kB / 0.7231 GB, free: 132.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009943/1.094, allocations: 117.5 kB / 0.7232 GB, free: 132.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/1.094, allocations: 98.23 kB / 0.7233 GB, free: 132.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/1.094, allocations: 23.27 kB / 0.7233 GB, free: 132.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0006053/1.095, allocations: 0.5558 MB / 0.7239 GB, free: 132.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001561/1.097, allocations: 368.8 kB / 0.7242 GB, free: 132.1 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.0002149/1.097, allocations: 135.4 kB / 0.7244 GB, free: 132 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004027/1.101, allocations: 1.751 MB / 0.7261 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.101, allocations: 4.188 kB / 0.7261 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003256/1.104, allocations: 1.271 MB / 0.7273 GB, free: 131 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/1.105, allocations: 337.8 kB / 0.7276 GB, free: 130.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/1.108, allocations: 1.562 MB / 0.7292 GB, free: 130 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000704/1.109, allocations: 1.16 MB / 0.7303 GB, free: 129.3 MB / 490.7 MB Notification: Performance of SimCode: time 2.5e-07/1.109, allocations: 0 / 0.7303 GB, free: 129.3 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)