Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001567, allocations: 172.9 kB / 7.646 MB, free: 1.422 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.309/1.309, allocations: 221.5 MB / 229.6 MB, free: 7.57 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.0008921/0.000892, allocations: 89.91 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4892/0.4892, allocations: 78.94 MB / 410.2 MB, free: 6.035 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.711e-05/1.721e-05, allocations: 0 / 486 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1237, allocations: 69.52 MB / 0.5425 GB, free: 5.812 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.5053, allocations: 98.44 MB / 0.6387 GB, free: 15.62 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.5056, allocations: 77.31 kB / 0.6387 GB, free: 15.54 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08331/0.5889, allocations: 31.13 MB / 0.6691 GB, free: 464 kB / 474.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.589, allocations: 0 / 0.6691 GB, free: 464 kB / 474.7 MB Notification: Performance of Transformations before backend: time 8.985e-05/0.5891, allocations: 20 kB / 0.6692 GB, free: 444 kB / 474.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.004598/0.5937, allocations: 1.706 MB / 0.6708 GB, free: 14.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.5937, allocations: 8.031 kB / 0.6708 GB, free: 14.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003486/0.5972, allocations: 0.5602 MB / 0.6714 GB, free: 14.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.599, allocations: 0.7597 MB / 0.6721 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/0.5994, allocations: 236.2 kB / 0.6723 GB, free: 13.02 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002839/0.5997, allocations: 51.84 kB / 0.6724 GB, free: 12.97 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001616/0.6013, allocations: 0.8006 MB / 0.6732 GB, free: 12.17 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.6029, allocations: 0.8212 MB / 0.674 GB, free: 11.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.6029, allocations: 4 kB / 0.674 GB, free: 11.33 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.821e-05/0.603, allocations: 4 kB / 0.674 GB, free: 11.33 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.603, allocations: 16 kB / 0.674 GB, free: 11.31 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006802/0.6098, allocations: 3.658 MB / 0.6776 GB, free: 7.492 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007109/0.617, allocations: 2.607 MB / 0.6801 GB, free: 4.789 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.6178, allocations: 0.5201 MB / 0.6806 GB, free: 4.266 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.6179, allocations: 16.75 kB / 0.6806 GB, free: 4.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.6189, allocations: 0.6371 MB / 0.6813 GB, free: 3.594 MB / 490.7 MB Notification: Performance of pre-optimization done (n=95): time 4.098e-06/0.6189, allocations: 3.984 kB / 0.6813 GB, free: 3.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=95): time 0.01186/0.6308, allocations: 3.926 MB / 0.6851 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.6309, allocations: 119.9 kB / 0.6852 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.6322, allocations: 0.8193 MB / 0.686 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.6324, allocations: 25.7 kB / 0.686 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003773/0.6328, allocations: 0.5166 MB / 0.6865 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.6331, allocations: 327.1 kB / 0.6869 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.6332, allocations: 0 / 0.6869 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.6334, allocations: 345.9 kB / 0.6872 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/0.6341, allocations: 440.6 kB / 0.6876 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007846/0.6349, allocations: 0.5497 MB / 0.6881 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007822/0.6357, allocations: 496.8 kB / 0.6886 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.6357, allocations: 4 kB / 0.6886 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.01187/0.6475, allocations: 3.947 MB / 0.6925 GB, free: 7.977 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/0.6476, allocations: 67.39 kB / 0.6925 GB, free: 7.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.6477, allocations: 5.328 kB / 0.6925 GB, free: 7.895 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005364/0.653, allocations: 1.502 MB / 0.694 GB, free: 6.391 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009764/0.654, allocations: 179.8 kB / 0.6942 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/0.6674, allocations: 6.601 MB / 0.7006 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.6691, allocations: 187 kB / 0.7008 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.6693, allocations: 38.61 kB / 0.7008 GB, free: 15.27 MB / 0.5105 GB 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.0003729/0.6697, allocations: 159.2 kB / 0.701 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01199/0.6817, allocations: 3.93 MB / 0.7048 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005915/0.6823, allocations: 130.4 kB / 0.705 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/0.6947, allocations: 4.024 MB / 0.7089 GB, free: 6.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.6948, allocations: 12 kB / 0.7089 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.6948, allocations: 12 kB / 0.7089 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/0.6948, allocations: 7.969 kB / 0.7089 GB, free: 6.949 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.7086, allocations: 5.501 MB / 0.7143 GB, free: 1.359 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/0.7086, allocations: 0 / 0.7143 GB, free: 1.359 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006351/0.7093, allocations: 99.84 kB / 0.7144 GB, free: 1.262 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004684/0.714, allocations: 1.485 MB / 0.7158 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.7141, allocations: 11.98 kB / 0.7159 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01324/0.7274, allocations: 7.532 MB / 0.7232 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.7274, allocations: 0.75 kB / 0.7232 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/0.7415, allocations: 4.769 MB / 0.7279 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006238/0.7422, allocations: 223.3 kB / 0.7281 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005196/0.7427, allocations: 4 kB / 0.7281 GB, free: 2.938 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001938/0.7447, allocations: 129.3 kB / 0.7282 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008498/0.7455, allocations: 196.9 kB / 0.7284 GB, free: 2.621 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/0.7457, allocations: 32.73 kB / 0.7284 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001415/0.7472, allocations: 0.6216 MB / 0.729 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7472, allocations: 3.938 kB / 0.729 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002361/0.7496, allocations: 395.5 kB / 0.7294 GB, free: 1.57 MB / 0.5261 GB 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.01858/0.7681, allocations: 5.422 MB / 0.7347 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007155/0.7753, allocations: 1.993 MB / 0.7367 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.7754, allocations: 5.469 kB / 0.7367 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004851/0.7802, allocations: 1.533 MB / 0.7382 GB, free: 8.504 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.7813, allocations: 85.8 kB / 0.7382 GB, free: 8.418 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/0.786, allocations: 1.799 MB / 0.74 GB, free: 6.578 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008054/0.7868, allocations: 1.147 MB / 0.7411 GB, free: 5.402 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005152/0.7873, allocations: 97.36 kB / 0.7412 GB, free: 5.305 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.7881, allocations: 475.3 kB / 0.7417 GB, free: 4.84 MB / 0.5417 GB Notification: Performance of SimCode: time 8.82e-07/0.7881, allocations: 0 / 0.7417 GB, free: 4.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3118/1.1, allocations: 28.66 MB / 0.7697 GB, free: 145.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001314/1.1, allocations: 150.4 kB / 0.7698 GB, free: 145.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.693/3.793, allocations: 0 / 0.7698 GB, free: 145.3 MB / 0.5573 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)