Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_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.003092/0.003092, allocations: 182.5 kB / 7.457 MB, free: 2.242 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.17/1.17, 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.0009249/0.0009248, allocations: 89.39 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4208/0.4208, allocations: 78.06 MB / 409 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1401/0.561, allocations: 75.48 MB / 484.4 MB, free: 4.359 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.869, allocations: 69.35 MB / 0.5408 GB, free: 21.37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.9882, allocations: 98.09 MB / 0.6366 GB, free: 6.723 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.9885, allocations: 79.89 kB / 0.6367 GB, free: 6.645 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.1127/1.101, allocations: 37.46 MB / 0.6733 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/1.101, allocations: 8 kB / 0.6733 GB, free: 0.8633 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004064/1.105, allocations: 0.5797 MB / 0.6738 GB, free: 288 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1856/1.291, allocations: 0.7874 MB / 0.6746 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/1.291, allocations: 235.8 kB / 0.6748 GB, free: 141.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/1.292, allocations: 51.62 kB / 0.6749 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001416/1.293, allocations: 0.8016 MB / 0.6757 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/1.294, allocations: 0.8306 MB / 0.6765 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/1.294, allocations: 0 / 0.6765 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.387e-05/1.294, allocations: 0 / 0.6765 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/1.294, allocations: 19.12 kB / 0.6765 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006152/1.3, allocations: 3.743 MB / 0.6801 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/1.302, allocations: 0.6143 MB / 0.6807 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007174/1.302, allocations: 0.5049 MB / 0.6812 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/1.302, allocations: 22.3 kB / 0.6813 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008621/1.303, allocations: 0.6278 MB / 0.6819 GB, free: 140.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 3.456e-06/1.303, allocations: 3.844 kB / 0.6819 GB, free: 140.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01209/1.315, allocations: 4.17 MB / 0.6859 GB, free: 140 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/1.316, allocations: 119.2 kB / 0.6861 GB, free: 139.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/1.317, allocations: 0.8109 MB / 0.6868 GB, free: 139.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002217/1.317, allocations: 25.7 kB / 0.6869 GB, free: 139.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/1.317, allocations: 317.5 kB / 0.6872 GB, free: 139.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/1.318, allocations: 341.1 kB / 0.6875 GB, free: 139.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.76e-05/1.318, allocations: 0 / 0.6875 GB, free: 139.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.387e-05/1.318, allocations: 345 kB / 0.6878 GB, free: 139.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006718/1.318, allocations: 441.2 kB / 0.6883 GB, free: 139.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007238/1.319, allocations: 0.5621 MB / 0.6888 GB, free: 139 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007628/1.32, allocations: 496.3 kB / 0.6893 GB, free: 139 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.32, allocations: 2.188 kB / 0.6893 GB, free: 139 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01271/1.333, allocations: 4.185 MB / 0.6934 GB, free: 138.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/1.333, allocations: 9.969 kB / 0.6934 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/1.333, allocations: 7.844 kB / 0.6934 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005508/1.338, allocations: 1.566 MB / 0.6949 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/1.339, allocations: 192 kB / 0.6951 GB, free: 138.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/1.353, allocations: 6.012 MB / 0.701 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/1.355, allocations: 190.4 kB / 0.7011 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/1.355, allocations: 37.06 kB / 0.7012 GB, free: 136.9 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.0003277/1.355, allocations: 157.7 kB / 0.7013 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/1.355, allocations: 122.4 kB / 0.7014 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01312/1.369, allocations: 4.261 MB / 0.7056 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/1.369, allocations: 9.625 kB / 0.7056 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.369, allocations: 14.77 kB / 0.7056 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/1.369, allocations: 7.188 kB / 0.7056 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/1.383, allocations: 5.661 MB / 0.7112 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/1.383, allocations: 6.594 kB / 0.7112 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007518/1.384, allocations: 99.11 kB / 0.7113 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004905/1.389, allocations: 1.522 MB / 0.7128 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002727/1.389, allocations: 16.38 kB / 0.7128 GB, free: 135.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/1.402, allocations: 7.133 MB / 0.7197 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.402, allocations: 2.844 kB / 0.7197 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0136/1.415, allocations: 5.03 MB / 0.7247 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01538/1.431, allocations: 6.125 MB / 0.7306 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005454/1.431, allocations: 220.9 kB / 0.7308 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/1.432, allocations: 1.188 kB / 0.7308 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/1.433, allocations: 138.3 kB / 0.731 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003383/1.433, allocations: 122.6 kB / 0.7311 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.504e-05/1.433, allocations: 28.77 kB / 0.7311 GB, free: 127.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008413/1.434, allocations: 0.6121 MB / 0.7317 GB, free: 126.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001994/1.436, allocations: 397.7 kB / 0.7321 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: 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 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003587/1.437, allocations: 143.6 kB / 0.7322 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005043/1.442, allocations: 1.936 MB / 0.7341 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.442, allocations: 4.062 kB / 0.7341 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003761/1.445, allocations: 1.487 MB / 0.7356 GB, free: 124.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009837/1.446, allocations: 94.47 kB / 0.7357 GB, free: 124.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/1.45, allocations: 1.737 MB / 0.7374 GB, free: 122.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007316/1.451, allocations: 1.215 MB / 0.7386 GB, free: 121.5 MB / 490.7 MB Notification: Performance of SimCode: time 7.92e-07/1.451, allocations: 0 / 0.7386 GB, free: 121.5 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)