Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.001972/0.001972, allocations: 177.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.062 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.0007445/0.0007444, allocations: 89.2 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3659/0.3659, allocations: 78.1 MB / 409 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1188/0.4847, allocations: 75.49 MB / 484.5 MB, free: 4.441 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.7178, allocations: 69.34 MB / 0.5408 GB, free: 21.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1/0.8179, allocations: 98.06 MB / 0.6366 GB, free: 6.812 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001932/0.8181, allocations: 75.95 kB / 0.6367 GB, free: 6.738 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.09681/0.9149, allocations: 37.46 MB / 0.6733 GB, free: 0.9648 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.915, allocations: 12 kB / 0.6733 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00345/0.9184, allocations: 0.5797 MB / 0.6738 GB, free: 380 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1363/1.055, allocations: 0.7837 MB / 0.6746 GB, free: 141.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/1.055, allocations: 236.2 kB / 0.6748 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/1.055, allocations: 53.09 kB / 0.6749 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00125/1.056, allocations: 0.8004 MB / 0.6757 GB, free: 141.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/1.058, allocations: 0.8276 MB / 0.6765 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/1.058, allocations: 3.906 kB / 0.6765 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/1.058, allocations: 3.797 kB / 0.6765 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/1.058, allocations: 19.19 kB / 0.6765 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005373/1.063, allocations: 3.736 MB / 0.6801 GB, free: 140.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009879/1.064, allocations: 0.6102 MB / 0.6807 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000615/1.065, allocations: 0.5093 MB / 0.6812 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.764e-05/1.065, allocations: 34.78 kB / 0.6813 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007885/1.066, allocations: 0.6252 MB / 0.6819 GB, free: 140.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.524e-06/1.066, allocations: 3.938 kB / 0.6819 GB, free: 140.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01173/1.077, allocations: 4.171 MB / 0.686 GB, free: 140.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/1.077, allocations: 117.2 kB / 0.6861 GB, free: 140.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009088/1.078, allocations: 0.8099 MB / 0.6869 GB, free: 140 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/1.078, allocations: 25.7 kB / 0.6869 GB, free: 140 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/1.079, allocations: 317.5 kB / 0.6872 GB, free: 139.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/1.079, allocations: 337.6 kB / 0.6875 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/1.079, allocations: 0 / 0.6875 GB, free: 139.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.549e-05/1.079, allocations: 344.9 kB / 0.6878 GB, free: 139.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006585/1.08, allocations: 445.6 kB / 0.6883 GB, free: 139.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006857/1.08, allocations: 0.5551 MB / 0.6888 GB, free: 139.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/1.081, allocations: 494.8 kB / 0.6893 GB, free: 139.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/1.081, allocations: 3.562 kB / 0.6893 GB, free: 139.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01151/1.093, allocations: 4.2 MB / 0.6934 GB, free: 138.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.093, allocations: 3.875 kB / 0.6934 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/1.093, allocations: 7.719 kB / 0.6934 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005099/1.098, allocations: 1.568 MB / 0.6949 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009697/1.099, allocations: 181.4 kB / 0.6951 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/1.111, allocations: 6.008 MB / 0.701 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/1.113, allocations: 189.5 kB / 0.7011 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/1.113, allocations: 37.55 kB / 0.7012 GB, free: 137.1 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.0002529/1.113, allocations: 150.9 kB / 0.7013 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/1.114, allocations: 125.2 kB / 0.7014 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.126, allocations: 4.275 MB / 0.7056 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/1.126, allocations: 10.28 kB / 0.7056 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/1.126, allocations: 6.469 kB / 0.7056 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/1.126, allocations: 11.67 kB / 0.7056 GB, free: 136.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/1.139, allocations: 5.655 MB / 0.7112 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/1.139, allocations: 7.656 kB / 0.7112 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006197/1.14, allocations: 98.38 kB / 0.7113 GB, free: 135.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004549/1.144, allocations: 1.53 MB / 0.7128 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/1.144, allocations: 18.09 kB / 0.7128 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/1.156, allocations: 7.131 MB / 0.7197 GB, free: 131.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.156, allocations: 6.531 kB / 0.7197 GB, free: 131.2 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01255/1.169, allocations: 5.02 MB / 0.7246 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01465/1.184, allocations: 6.126 MB / 0.7306 GB, free: 127.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004176/1.184, allocations: 220.1 kB / 0.7308 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/1.184, allocations: 4.844 kB / 0.7308 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/1.186, allocations: 139.4 kB / 0.731 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/1.186, allocations: 115.9 kB / 0.7311 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.305e-05/1.186, allocations: 31.02 kB / 0.7311 GB, free: 127.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008054/1.187, allocations: 0.6124 MB / 0.7317 GB, free: 127 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001833/1.189, allocations: 396.2 kB / 0.7321 GB, free: 127 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.0002633/1.189, allocations: 144.8 kB / 0.7322 GB, free: 126.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004622/1.194, allocations: 1.942 MB / 0.7341 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/1.194, allocations: 4 kB / 0.7341 GB, free: 125.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00347/1.197, allocations: 1.48 MB / 0.7356 GB, free: 124.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/1.198, allocations: 90.03 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.003684/1.202, allocations: 1.741 MB / 0.7374 GB, free: 122.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006818/1.202, allocations: 1.214 MB / 0.7385 GB, free: 121.6 MB / 490.7 MB Notification: Performance of SimCode: time 8.32e-07/1.202, allocations: 4 kB / 0.7386 GB, free: 121.6 MB / 490.7 MB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)