Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.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.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",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.003425/0.003425, allocations: 179.7 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.287/1.287, allocations: 221.4 MB / 229.3 MB, free: 2.996 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.001003/0.001003, allocations: 101.4 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4801/0.4801, allocations: 78.92 MB / 409.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1821/0.6623, allocations: 75.65 MB / 485.5 MB, free: 3.562 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/1.055, allocations: 69.5 MB / 0.542 GB, free: 21.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/1.186, allocations: 101.3 MB / 0.6409 GB, free: 2.59 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/1.186, allocations: 83.97 kB / 0.641 GB, free: 2.508 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.5446/1.731, allocations: 106.4 MB / 0.7449 GB, free: 62.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/1.731, allocations: 8 kB / 0.7449 GB, free: 62.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01881/1.75, allocations: 2.927 MB / 0.7477 GB, free: 59.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007704/1.758, allocations: 2.245 MB / 0.7499 GB, free: 57.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00112/1.759, allocations: 0.8752 MB / 0.7508 GB, free: 56.33 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/1.76, allocations: 207.9 kB / 0.751 GB, free: 56.13 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00863/1.769, allocations: 3.431 MB / 0.7543 GB, free: 52.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009994/1.779, allocations: 3.59 MB / 0.7578 GB, free: 49.08 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/1.779, allocations: 3.938 kB / 0.7579 GB, free: 49.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009597/1.78, allocations: 3.984 kB / 0.7579 GB, free: 49.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.203e-05/1.78, allocations: 84 kB / 0.7579 GB, free: 48.99 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03719/1.818, allocations: 18.53 MB / 0.776 GB, free: 29.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004305/1.822, allocations: 2.255 MB / 0.7782 GB, free: 27.15 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003549/1.826, allocations: 2.104 MB / 0.7803 GB, free: 25.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005834/1.826, allocations: 70.89 kB / 0.7804 GB, free: 24.97 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004753/1.831, allocations: 2.473 MB / 0.7828 GB, free: 22.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=382): time 1.14e-05/1.831, allocations: 0 / 0.7828 GB, free: 22.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=382): time 0.05471/1.886, allocations: 18.37 MB / 0.8007 GB, free: 4.035 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/1.886, allocations: 145.8 kB / 0.8008 GB, free: 3.867 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005126/1.891, allocations: 2.452 MB / 0.8032 GB, free: 1.402 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009195/1.892, allocations: 25.7 kB / 0.8033 GB, free: 1.371 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000799/1.893, allocations: 1.174 MB / 0.8044 GB, free: 184 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003148/1.896, allocations: 1.258 MB / 0.8056 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007315/1.897, allocations: 0 / 0.8056 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003047/1.897, allocations: 441.7 kB / 0.8061 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003621/1.9, allocations: 1.769 MB / 0.8078 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0041/1.905, allocations: 2.318 MB / 0.81 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003966/1.909, allocations: 1.961 MB / 0.812 GB, free: 8.199 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.253e-05/1.909, allocations: 4 kB / 0.812 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of matching and sorting (n=466) (initialization): time 0.05917/1.968, allocations: 18.41 MB / 0.83 GB, free: 5.738 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/1.968, allocations: 8 kB / 0.83 GB, free: 5.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.924e-05/1.968, allocations: 15.94 kB / 0.83 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0267/1.995, allocations: 7.2 MB / 0.837 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/1.998, allocations: 0.5578 MB / 0.8375 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06677/2.065, allocations: 22.28 MB / 0.8593 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007614/2.073, allocations: 0.6957 MB / 0.86 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/2.074, allocations: 132 kB / 0.8601 GB, free: 6.688 MB / 0.5417 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.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 order3_1.e1q:VARIABLE(start = order3_1.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (329): * Single equations (assignments): 326 * 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 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.002428/2.077, allocations: 198.7 kB / 0.8603 GB, free: 6.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002237/2.079, allocations: 458.3 kB / 0.8607 GB, free: 6.027 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0609/2.14, allocations: 18.8 MB / 0.8791 GB, free: 3.168 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.575e-05/2.14, allocations: 39.94 kB / 0.8791 GB, free: 3.129 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-05/2.14, allocations: 28 kB / 0.8792 GB, free: 3.102 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001325/2.14, allocations: 19.92 kB / 0.8792 GB, free: 3.082 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3053/2.446, allocations: 23.37 MB / 0.902 GB, free: 169.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.582e-05/2.446, allocations: 0 / 0.902 GB, free: 169.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00272/2.448, allocations: 381.9 kB / 0.9024 GB, free: 169.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02323/2.472, allocations: 7.259 MB / 0.9094 GB, free: 169.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/2.473, allocations: 21.59 kB / 0.9095 GB, free: 169.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05553/2.528, allocations: 22 MB / 0.9309 GB, free: 166.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/2.528, allocations: 0 / 0.9309 GB, free: 166.7 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05906/2.587, allocations: 21.72 MB / 0.9522 GB, free: 166 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06907/2.656, allocations: 25.22 MB / 0.9768 GB, free: 160.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/2.658, allocations: 0.5569 MB / 0.9773 GB, free: 160.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/2.659, allocations: 6.531 kB / 0.9773 GB, free: 160.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005432/2.665, allocations: 0.4933 MB / 0.9778 GB, free: 160.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001689/2.667, allocations: 454.2 kB / 0.9783 GB, free: 160 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003749/2.667, allocations: 96.22 kB / 0.9783 GB, free: 160 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002658/2.67, allocations: 1.812 MB / 0.9801 GB, free: 159.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006121/2.676, allocations: 1.57 MB / 0.9816 GB, free: 159.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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 {(98,5.5%) 38} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007951/2.677, allocations: 154.8 kB / 0.9818 GB, free: 159.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02169/2.698, allocations: 7.896 MB / 0.9895 GB, free: 155.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/2.698, allocations: 0 / 0.9895 GB, free: 155.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01815/2.717, allocations: 5.933 MB / 0.9953 GB, free: 149.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/2.72, allocations: 239.8 kB / 0.9955 GB, free: 149.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01668/2.736, allocations: 5.888 MB / 1.001 GB, free: 144.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/2.739, allocations: 2.672 MB / 1.004 GB, free: 142.3 MB / 0.573 GB Notification: Performance of SimCode: time 1.062e-06/2.739, allocations: 0 / 1.004 GB, free: 142.3 MB / 0.573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)