Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_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.002489/0.002489, allocations: 178.7 kB / 7.456 MB, free: 2.512 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.256/1.256, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.0009937/0.0009937, allocations: 91.39 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.412/0.412, allocations: 78.06 MB / 408.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1463/0.5583, allocations: 75.49 MB / 484.4 MB, free: 4.34 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.86, allocations: 69.34 MB / 0.5408 GB, free: 21.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.9834, allocations: 96.92 MB / 0.6354 GB, free: 7.793 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.9838, allocations: 79.95 kB / 0.6355 GB, free: 7.715 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.09453/1.078, allocations: 33.73 MB / 0.6685 GB, free: 5.676 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/1.078, allocations: 12 kB / 0.6685 GB, free: 5.664 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003616/1.082, allocations: 0.5681 MB / 0.669 GB, free: 5.094 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/1.083, allocations: 0.708 MB / 0.6697 GB, free: 4.332 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002932/1.084, allocations: 248.1 kB / 0.67 GB, free: 4.055 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/1.084, allocations: 44 kB / 0.67 GB, free: 4.012 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001543/1.085, allocations: 0.7577 MB / 0.6707 GB, free: 3.254 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/1.087, allocations: 0.8972 MB / 0.6716 GB, free: 2.332 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/1.087, allocations: 0 / 0.6716 GB, free: 2.332 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.119e-05/1.087, allocations: 3.984 kB / 0.6716 GB, free: 2.328 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/1.087, allocations: 16 kB / 0.6716 GB, free: 2.312 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/1.26, allocations: 3.47 MB / 0.675 GB, free: 142.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/1.261, allocations: 0.588 MB / 0.6756 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006418/1.262, allocations: 494.6 kB / 0.6761 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/1.262, allocations: 22.12 kB / 0.6761 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/1.262, allocations: 42.38 kB / 0.6761 GB, free: 142.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=92): time 3.637e-06/1.262, allocations: 0 / 0.6761 GB, free: 142.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.012/1.274, allocations: 4.088 MB / 0.6801 GB, free: 142.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/1.274, allocations: 100.4 kB / 0.6802 GB, free: 142.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009733/1.275, allocations: 0.7174 MB / 0.6809 GB, free: 142 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.744e-05/1.275, allocations: 25.7 kB / 0.6809 GB, free: 141.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/1.276, allocations: 301 kB / 0.6812 GB, free: 141.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002795/1.276, allocations: 287.1 kB / 0.6815 GB, free: 141.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/1.276, allocations: 0 / 0.6815 GB, free: 141.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.589e-05/1.276, allocations: 343.1 kB / 0.6818 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/1.277, allocations: 381 kB / 0.6822 GB, free: 141.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/1.277, allocations: 0.5421 MB / 0.6827 GB, free: 141.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006385/1.278, allocations: 440.7 kB / 0.6831 GB, free: 141.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.278, allocations: 3.312 kB / 0.6831 GB, free: 141.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.01155/1.29, allocations: 4.057 MB / 0.6871 GB, free: 140.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/1.29, allocations: 3.281 kB / 0.6871 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/1.29, allocations: 10.72 kB / 0.6871 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004999/1.295, allocations: 1.505 MB / 0.6886 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006891/1.295, allocations: 144.9 kB / 0.6887 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/1.307, allocations: 5.85 MB / 0.6944 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/1.309, allocations: 155.1 kB / 0.6946 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/1.309, allocations: 41.88 kB / 0.6946 GB, free: 139.2 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.0002947/1.309, allocations: 138 kB / 0.6948 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009363/1.31, allocations: 306.5 kB / 0.6951 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/1.322, allocations: 3.997 MB / 0.699 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/1.323, allocations: 10.28 kB / 0.699 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/1.323, allocations: 10.12 kB / 0.699 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.017e-05/1.323, allocations: 11.38 kB / 0.699 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01351/1.336, allocations: 5.182 MB / 0.7041 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/1.336, allocations: 1.312 kB / 0.7041 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007647/1.337, allocations: 113.6 kB / 0.7042 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005001/1.342, allocations: 1.504 MB / 0.7056 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/1.342, allocations: 10.53 kB / 0.7056 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/1.355, allocations: 6.844 MB / 0.7123 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.355, allocations: 6.812 kB / 0.7123 GB, free: 135.2 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01327/1.368, allocations: 4.869 MB / 0.7171 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01431/1.383, allocations: 5.923 MB / 0.7229 GB, free: 132 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/1.383, allocations: 211.6 kB / 0.7231 GB, free: 131.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/1.384, allocations: 3.656 kB / 0.7231 GB, free: 131.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/1.385, allocations: 116.8 kB / 0.7232 GB, free: 131.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/1.385, allocations: 93.41 kB / 0.7233 GB, free: 131.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.932e-05/1.385, allocations: 29.16 kB / 0.7233 GB, free: 131.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0007925/1.386, allocations: 0.5529 MB / 0.7238 GB, free: 131.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001862/1.388, allocations: 365.9 kB / 0.7242 GB, free: 131.5 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.0003036/1.388, allocations: 141.7 kB / 0.7243 GB, free: 131.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004624/1.393, allocations: 1.755 MB / 0.726 GB, free: 130.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/1.393, allocations: 1.188 kB / 0.726 GB, free: 130.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/1.397, allocations: 1.271 MB / 0.7273 GB, free: 130.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/1.398, allocations: 338.3 kB / 0.7276 GB, free: 130.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/1.402, allocations: 1.569 MB / 0.7291 GB, free: 129.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/1.403, allocations: 1.157 MB / 0.7303 GB, free: 128.7 MB / 490.7 MB Notification: Performance of SimCode: time 7.62e-07/1.403, allocations: 0 / 0.7303 GB, free: 128.7 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)