Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.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.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.004034/0.004035, allocations: 183.6 kB / 7.459 MB, free: 2.512 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.34/1.34, 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.0009935/0.0009937, allocations: 101.4 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4609/0.4609, allocations: 78.06 MB / 408.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1637/0.6246, allocations: 75.5 MB / 484.4 MB, free: 4.387 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.9906, allocations: 69.34 MB / 0.5408 GB, free: 21.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/1.124, allocations: 97.78 MB / 0.6363 GB, free: 6.996 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/1.124, allocations: 75.95 kB / 0.6364 GB, free: 6.922 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.09395/1.218, allocations: 32.33 MB / 0.6679 GB, free: 6.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.218, allocations: 8 kB / 0.6679 GB, free: 6.312 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003949/1.222, allocations: 0.5758 MB / 0.6685 GB, free: 5.734 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/1.224, allocations: 0.7703 MB / 0.6693 GB, free: 4.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/1.225, allocations: 236.2 kB / 0.6695 GB, free: 4.641 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/1.225, allocations: 44 kB / 0.6695 GB, free: 4.598 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001639/1.226, allocations: 0.8006 MB / 0.6703 GB, free: 3.797 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/1.228, allocations: 0.8368 MB / 0.6711 GB, free: 2.949 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/1.228, allocations: 0 / 0.6711 GB, free: 2.949 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-05/1.228, allocations: 0 / 0.6711 GB, free: 2.949 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/1.228, allocations: 23.91 kB / 0.6711 GB, free: 2.926 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1978/1.426, allocations: 3.729 MB / 0.6748 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/1.427, allocations: 0.6037 MB / 0.6754 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006932/1.428, allocations: 0.5128 MB / 0.6759 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/1.428, allocations: 14.25 kB / 0.6759 GB, free: 141.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00088/1.429, allocations: 0.63 MB / 0.6765 GB, free: 141.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=95): time 4.328e-06/1.429, allocations: 0 / 0.6765 GB, free: 141.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=95): time 0.01252/1.441, allocations: 4.17 MB / 0.6806 GB, free: 141.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/1.441, allocations: 126.4 kB / 0.6807 GB, free: 141.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/1.443, allocations: 0.8177 MB / 0.6815 GB, free: 141 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003052/1.443, allocations: 29.73 kB / 0.6815 GB, free: 140.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/1.443, allocations: 324.8 kB / 0.6818 GB, free: 140.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/1.444, allocations: 317.8 kB / 0.6821 GB, free: 140.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.107e-05/1.444, allocations: 3.844 kB / 0.6821 GB, free: 140.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/1.444, allocations: 346.7 kB / 0.6825 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008839/1.445, allocations: 441.5 kB / 0.6829 GB, free: 140.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008277/1.446, allocations: 0.5536 MB / 0.6834 GB, free: 140.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007724/1.447, allocations: 492.3 kB / 0.6839 GB, free: 140.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.447, allocations: 3.938 kB / 0.6839 GB, free: 140.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.01235/1.459, allocations: 4.19 MB / 0.688 GB, free: 139.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/1.459, allocations: 10 kB / 0.688 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/1.459, allocations: 0 / 0.688 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00568/1.465, allocations: 1.573 MB / 0.6895 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.466, allocations: 183.2 kB / 0.6897 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.479, allocations: 6.044 MB / 0.6956 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/1.481, allocations: 192.9 kB / 0.6958 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/1.481, allocations: 37.59 kB / 0.6958 GB, free: 138.2 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.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.e1q:VARIABLE(start = order3.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 (94): * Single equations (assignments): 91 * 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.0003371/1.481, allocations: 159.5 kB / 0.696 GB, free: 138.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/1.482, allocations: 127.5 kB / 0.6961 GB, free: 138 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/1.495, allocations: 4.271 MB / 0.7003 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/1.495, allocations: 14.25 kB / 0.7003 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/1.495, allocations: 6.938 kB / 0.7003 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.151e-05/1.495, allocations: 6.469 kB / 0.7003 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/1.51, allocations: 5.66 MB / 0.7058 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/1.51, allocations: 3.219 kB / 0.7058 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/1.511, allocations: 98.55 kB / 0.7059 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00504/1.516, allocations: 1.545 MB / 0.7075 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002126/1.516, allocations: 14.25 kB / 0.7075 GB, free: 136.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/1.529, allocations: 7.113 MB / 0.7144 GB, free: 133.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.53, allocations: 0 / 0.7144 GB, free: 133.7 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0139/1.543, allocations: 5.016 MB / 0.7193 GB, free: 132.3 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01517/1.559, allocations: 6.115 MB / 0.7253 GB, free: 130.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006622/1.559, allocations: 227.6 kB / 0.7255 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/1.56, allocations: 2.812 kB / 0.7255 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/1.561, allocations: 137.9 kB / 0.7256 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/1.561, allocations: 111.2 kB / 0.7257 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.33e-05/1.562, allocations: 28.08 kB / 0.7258 GB, free: 129.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008332/1.562, allocations: 0.6252 MB / 0.7264 GB, free: 129.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002138/1.565, allocations: 397.7 kB / 0.7268 GB, free: 129.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.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 (63): * Single equations (assignments): 60 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000315/1.565, allocations: 132 kB / 0.7269 GB, free: 129.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005451/1.57, allocations: 1.922 MB / 0.7288 GB, free: 128.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.57, allocations: 4.531 kB / 0.7288 GB, free: 128.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004293/1.575, allocations: 1.506 MB / 0.7302 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009047/1.576, allocations: 86.89 kB / 0.7303 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/1.58, allocations: 1.667 MB / 0.7319 GB, free: 127.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008681/1.581, allocations: 1.203 MB / 0.7331 GB, free: 126.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/1.581, allocations: 0 / 0.7331 GB, free: 126.1 MB / 490.7 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)