Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_release_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.001922/0.001922, allocations: 180.2 kB / 7.458 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.054/1.054, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0008541/0.0008541, allocations: 88.03 kB / 280.1 MB, free: 1.32 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3504/0.3504, allocations: 78.1 MB / 409 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1266/0.477, allocations: 75.49 MB / 484.5 MB, free: 4.473 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.6916, allocations: 69.34 MB / 0.5408 GB, free: 21.53 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09614/0.7877, allocations: 98.09 MB / 0.6366 GB, free: 6.906 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.7879, allocations: 79.95 kB / 0.6367 GB, free: 6.828 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.09578/0.8837, allocations: 37.46 MB / 0.6733 GB, free: 1.055 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.8838, allocations: 8 kB / 0.6733 GB, free: 1.047 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003401/0.8872, allocations: 0.5836 MB / 0.6739 GB, free: 472 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1215/1.009, allocations: 0.7783 MB / 0.6746 GB, free: 141.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/1.009, allocations: 237.4 kB / 0.6749 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/1.009, allocations: 56.14 kB / 0.6749 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001198/1.01, allocations: 0.7964 MB / 0.6757 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/1.011, allocations: 0.8333 MB / 0.6765 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/1.011, allocations: 0 / 0.6765 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.933e-05/1.012, allocations: 6.062 kB / 0.6765 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/1.012, allocations: 18.12 kB / 0.6765 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005169/1.017, allocations: 3.741 MB / 0.6802 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/1.018, allocations: 0.6105 MB / 0.6808 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/1.018, allocations: 0.5134 MB / 0.6813 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.525e-05/1.018, allocations: 23.17 kB / 0.6813 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007695/1.019, allocations: 0.6283 MB / 0.6819 GB, free: 140.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 6.352e-06/1.019, allocations: 0 / 0.6819 GB, free: 140.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01124/1.03, allocations: 4.174 MB / 0.686 GB, free: 140.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/1.03, allocations: 116.6 kB / 0.6861 GB, free: 140.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008203/1.031, allocations: 0.8106 MB / 0.6869 GB, free: 140.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.337e-05/1.031, allocations: 25.7 kB / 0.6869 GB, free: 140 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/1.032, allocations: 320.5 kB / 0.6872 GB, free: 139.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/1.032, allocations: 331 kB / 0.6875 GB, free: 139.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-05/1.032, allocations: 3.828 kB / 0.6875 GB, free: 139.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.234e-05/1.032, allocations: 348.4 kB / 0.6879 GB, free: 139.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006339/1.033, allocations: 444.9 kB / 0.6883 GB, free: 139.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006651/1.033, allocations: 0.5587 MB / 0.6888 GB, free: 139.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006747/1.034, allocations: 497.7 kB / 0.6893 GB, free: 139.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/1.034, allocations: 0 / 0.6893 GB, free: 139.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01116/1.045, allocations: 4.197 MB / 0.6934 GB, free: 138.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/1.045, allocations: 3.906 kB / 0.6934 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/1.045, allocations: 3.844 kB / 0.6934 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005002/1.05, allocations: 1.566 MB / 0.6949 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000882/1.051, allocations: 187.5 kB / 0.6951 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/1.063, allocations: 6.006 MB / 0.701 GB, free: 137.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/1.064, allocations: 189.2 kB / 0.7012 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/1.065, allocations: 39.84 kB / 0.7012 GB, free: 137.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 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.0002402/1.065, allocations: 155 kB / 0.7014 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/1.065, allocations: 125.9 kB / 0.7015 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/1.077, allocations: 4.265 MB / 0.7056 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/1.077, allocations: 11 kB / 0.7057 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.077, allocations: 13.44 kB / 0.7057 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/1.077, allocations: 6.562 kB / 0.7057 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/1.09, allocations: 5.663 MB / 0.7112 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.09, allocations: 2.719 kB / 0.7112 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/1.09, allocations: 99.53 kB / 0.7113 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004417/1.095, allocations: 1.536 MB / 0.7128 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.963e-05/1.095, allocations: 3.062 kB / 0.7128 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.106, allocations: 7.145 MB / 0.7198 GB, free: 131.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.107, allocations: 0 / 0.7198 GB, free: 131.1 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01237/1.119, allocations: 5.02 MB / 0.7247 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01371/1.133, allocations: 6.124 MB / 0.7307 GB, free: 127.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/1.133, allocations: 229.9 kB / 0.7309 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/1.133, allocations: 2.969 kB / 0.7309 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/1.134, allocations: 142.2 kB / 0.731 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/1.135, allocations: 116.6 kB / 0.7311 GB, free: 127.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.611e-05/1.135, allocations: 24.41 kB / 0.7312 GB, free: 127.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0007627/1.136, allocations: 0.6152 MB / 0.7318 GB, free: 126.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001766/1.137, allocations: 395.8 kB / 0.7321 GB, free: 126.9 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.0002317/1.138, allocations: 149.4 kB / 0.7323 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004328/1.142, allocations: 1.935 MB / 0.7342 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.142, allocations: 8.062 kB / 0.7342 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003354/1.145, allocations: 1.476 MB / 0.7356 GB, free: 124.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/1.146, allocations: 90.25 kB / 0.7357 GB, free: 124.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/1.149, allocations: 1.736 MB / 0.7374 GB, free: 122.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006507/1.15, allocations: 1.208 MB / 0.7386 GB, free: 121.7 MB / 490.7 MB Notification: Performance of SimCode: time 3.5e-07/1.15, allocations: 4 kB / 0.7386 GB, free: 121.7 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)