Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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.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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_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.003559/0.003558, allocations: 185.7 kB / 7.464 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.263/1.263, allocations: 221.4 MB / 229.3 MB, free: 3.121 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.0009171/0.000917, allocations: 95.89 kB / 280.1 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4586/0.4586, allocations: 78.07 MB / 409 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1582/0.6168, allocations: 75.48 MB / 484.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.9398, allocations: 69.35 MB / 0.5408 GB, free: 21.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/1.066, allocations: 101.4 MB / 0.6398 GB, free: 3.395 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/1.066, allocations: 87.94 kB / 0.6399 GB, free: 3.309 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.485/1.551, allocations: 104.6 MB / 0.7421 GB, free: 65.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/1.551, allocations: 8 kB / 0.7421 GB, free: 65.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/1.57, allocations: 2.927 MB / 0.7449 GB, free: 62.75 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006676/1.577, allocations: 2.282 MB / 0.7472 GB, free: 60.39 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009257/1.578, allocations: 0.883 MB / 0.748 GB, free: 59.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/1.579, allocations: 203.9 kB / 0.7482 GB, free: 59.17 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008185/1.587, allocations: 3.439 MB / 0.7516 GB, free: 55.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007775/1.595, allocations: 3.586 MB / 0.7551 GB, free: 52.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.371e-05/1.595, allocations: 0 / 0.7551 GB, free: 52.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003599/1.596, allocations: 4 kB / 0.7551 GB, free: 52.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.055e-05/1.596, allocations: 84 kB / 0.7552 GB, free: 52.03 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03261/1.628, allocations: 18.52 MB / 0.7733 GB, free: 32.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003603/1.632, allocations: 2.259 MB / 0.7755 GB, free: 30.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/1.635, allocations: 2.116 MB / 0.7775 GB, free: 28.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004218/1.635, allocations: 78.89 kB / 0.7776 GB, free: 28 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003624/1.639, allocations: 2.465 MB / 0.78 GB, free: 25.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=383): time 5.29e-06/1.639, allocations: 0 / 0.78 GB, free: 25.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=383): time 0.05354/1.693, allocations: 18.37 MB / 0.798 GB, free: 7.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/1.693, allocations: 145.8 kB / 0.7981 GB, free: 6.902 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003599/1.696, allocations: 2.432 MB / 0.8005 GB, free: 4.457 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001117/1.697, allocations: 25.7 kB / 0.8005 GB, free: 4.426 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006289/1.698, allocations: 1.178 MB / 0.8016 GB, free: 3.23 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002755/1.701, allocations: 1.254 MB / 0.8029 GB, free: 1.957 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/1.701, allocations: 4 kB / 0.8029 GB, free: 1.953 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/1.701, allocations: 441.8 kB / 0.8033 GB, free: 1.516 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/1.704, allocations: 1.765 MB / 0.805 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003759/1.708, allocations: 2.33 MB / 0.8073 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003565/1.712, allocations: 1.972 MB / 0.8092 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-05/1.712, allocations: 4 kB / 0.8092 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=468) (initialization): time 0.05722/1.769, allocations: 18.42 MB / 0.8272 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/1.769, allocations: 4 kB / 0.8272 GB, free: 8.762 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.162e-05/1.769, allocations: 12 kB / 0.8272 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02642/1.795, allocations: 7.184 MB / 0.8342 GB, free: 1.559 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003452/1.799, allocations: 0.5655 MB / 0.8348 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0603/1.859, allocations: 22.26 MB / 0.8565 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006193/1.865, allocations: 0.6724 MB / 0.8572 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007897/1.866, allocations: 136 kB / 0.8573 GB, free: 9.77 MB / 0.5417 GB Warning: Assuming fixed start value for the following 5 variables: order4.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 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: 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 (331): * Single equations (assignments): 328 * 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.0009354/1.867, allocations: 200.7 kB / 0.8575 GB, free: 9.562 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/1.868, allocations: 458.3 kB / 0.8579 GB, free: 9.109 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05695/1.925, allocations: 18.8 MB / 0.8763 GB, free: 6.25 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.703e-05/1.925, allocations: 40 kB / 0.8763 GB, free: 6.211 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.344e-05/1.925, allocations: 31.98 kB / 0.8764 GB, free: 6.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.421e-05/1.926, allocations: 15.94 kB / 0.8764 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2821/2.208, allocations: 23.38 MB / 0.8992 GB, free: 162.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.822e-05/2.208, allocations: 0 / 0.8992 GB, free: 162.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/2.211, allocations: 391.5 kB / 0.8996 GB, free: 162.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02405/2.235, allocations: 7.286 MB / 0.9067 GB, free: 162.9 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/2.236, allocations: 21.09 kB / 0.9067 GB, free: 162.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05417/2.29, allocations: 22 MB / 0.9282 GB, free: 160.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.29, allocations: 0 / 0.9282 GB, free: 160.1 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06361/2.353, allocations: 21.74 MB / 0.9494 GB, free: 158.3 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06542/2.419, allocations: 25.23 MB / 0.9741 GB, free: 144.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/2.421, allocations: 0.5539 MB / 0.9746 GB, free: 144.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0022/2.423, allocations: 0 / 0.9746 GB, free: 144.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005548/2.429, allocations: 489.2 kB / 0.9751 GB, free: 143.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001482/2.43, allocations: 461.2 kB / 0.9755 GB, free: 143.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004144/2.431, allocations: 97.27 kB / 0.9756 GB, free: 143.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002924/2.434, allocations: 1.795 MB / 0.9774 GB, free: 141.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007238/2.441, allocations: 1.573 MB / 0.9789 GB, free: 140.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(100,5.4%) 36} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008744/2.442, allocations: 152.6 kB / 0.9791 GB, free: 140.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02125/2.463, allocations: 7.898 MB / 0.9868 GB, free: 132.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/2.463, allocations: 4 kB / 0.9868 GB, free: 132.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01783/2.481, allocations: 5.958 MB / 0.9926 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/2.484, allocations: 240.8 kB / 0.9928 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01753/2.502, allocations: 5.932 MB / 0.9986 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002798/2.504, allocations: 2.667 MB / 1.001 GB, free: 120 MB / 0.5573 GB Notification: Performance of SimCode: time 1.342e-06/2.504, allocations: 0 / 1.001 GB, free: 120 MB / 0.5573 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)