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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 172.5 kB / 7.647 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.359/1.359, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.000899/0.0008991, allocations: 96.42 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5248/0.5248, allocations: 78.06 MB / 409.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.622e-05/1.624e-05, allocations: 4 kB / 485 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 69.37 MB / 0.5414 GB, free: 6.77 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4071/0.5426, allocations: 101.5 MB / 0.6405 GB, free: 13.96 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.5428, allocations: 80.8 kB / 0.6405 GB, free: 13.88 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2511/0.7939, allocations: 98.72 MB / 0.737 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.793e-06/0.794, allocations: 0 / 0.737 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002539/0.7942, allocations: 91.94 kB / 0.737 GB, free: 10.66 MB / 0.5417 GB 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.01795/0.8122, allocations: 5.739 MB / 0.7426 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.8123, allocations: 12.03 kB / 0.7427 GB, free: 4.836 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01773/0.83, allocations: 2.772 MB / 0.7454 GB, free: 2.055 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005274/0.8353, allocations: 2.278 MB / 0.7476 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009102/0.8362, allocations: 0.8597 MB / 0.7484 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/0.8373, allocations: 207.9 kB / 0.7486 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008046/0.8454, allocations: 3.434 MB / 0.752 GB, free: 11.06 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008022/0.8535, allocations: 3.598 MB / 0.7555 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.389e-05/0.8536, allocations: 0 / 0.7555 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003736/0.854, allocations: 0.6562 kB / 0.7555 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.14e-05/0.854, allocations: 84 kB / 0.7556 GB, free: 7.355 MB / 0.5573 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 preOpt removeSimpleEquations (simulation): time 0.3643/1.218, allocations: 18.03 MB / 0.7732 GB, free: 85.15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009873/1.228, allocations: 4.688 MB / 0.7778 GB, free: 84.72 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003599/1.232, allocations: 2.112 MB / 0.7798 GB, free: 84.69 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004902/1.232, allocations: 78.23 kB / 0.7799 GB, free: 84.69 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003643/1.236, allocations: 2.484 MB / 0.7823 GB, free: 84.55 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=383): time 6.272e-06/1.236, allocations: 0 / 0.7823 GB, free: 84.55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=383): time 0.05045/1.287, allocations: 17.28 MB / 0.7992 GB, free: 84 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/1.287, allocations: 143.8 kB / 0.7993 GB, free: 83.88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004639/1.291, allocations: 2.428 MB / 0.8017 GB, free: 83.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009823/1.292, allocations: 27.11 kB / 0.8017 GB, free: 83.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.294, allocations: 1.999 MB / 0.8037 GB, free: 83.13 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002109/1.296, allocations: 1.253 MB / 0.8049 GB, free: 82.47 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/1.296, allocations: 0 / 0.8049 GB, free: 82.47 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003067/1.297, allocations: 443.3 kB / 0.8053 GB, free: 82.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003616/1.3, allocations: 1.767 MB / 0.8071 GB, free: 82.15 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003898/1.304, allocations: 2.323 MB / 0.8093 GB, free: 81.6 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003567/1.308, allocations: 1.967 MB / 0.8112 GB, free: 81.52 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.956e-05/1.308, allocations: 4.281 kB / 0.8113 GB, free: 81.52 MB / 0.5573 GB Notification: Performance of matching and sorting (n=468) (initialization): time 0.04989/1.358, allocations: 17.33 MB / 0.8282 GB, free: 80.44 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.588e-05/1.358, allocations: 66.22 kB / 0.8282 GB, free: 80.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.658e-05/1.358, allocations: 17.25 kB / 0.8283 GB, free: 80.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0223/1.38, allocations: 6.901 MB / 0.835 GB, free: 79.97 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/1.383, allocations: 0.5587 MB / 0.8355 GB, free: 79.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0535/1.437, allocations: 25.22 MB / 0.8602 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006629/1.443, allocations: 0.6284 MB / 0.8608 GB, free: 70.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/1.445, allocations: 136.1 kB / 0.8609 GB, free: 70.14 MB / 0.5573 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.001029/1.446, allocations: 211.4 kB / 0.8611 GB, free: 70 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04846/1.494, allocations: 17.29 MB / 0.878 GB, free: 64.17 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002146/1.496, allocations: 454.4 kB / 0.8784 GB, free: 63.72 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04945/1.546, allocations: 17.73 MB / 0.8957 GB, free: 50.16 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-05/1.546, allocations: 40 kB / 0.8958 GB, free: 50.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/1.546, allocations: 31.94 kB / 0.8958 GB, free: 50.09 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/1.546, allocations: 17.48 kB / 0.8958 GB, free: 50.09 MB / 0.5573 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.0555/1.602, allocations: 22.35 MB / 0.9177 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/1.602, allocations: 6 kB / 0.9177 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002381/1.604, allocations: 393.5 kB / 0.918 GB, free: 32.81 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02046/1.624, allocations: 6.96 MB / 0.9248 GB, free: 27.41 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00103/1.626, allocations: 24.22 kB / 0.9249 GB, free: 27.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04747/1.673, allocations: 24.18 MB / 0.9485 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.673, allocations: 0 / 0.9485 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05637/1.729, allocations: 20.65 MB / 0.9686 GB, free: 3.656 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.732, allocations: 0.557 MB / 0.9692 GB, free: 3.074 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001716/1.733, allocations: 4 kB / 0.9692 GB, free: 3.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005601/1.739, allocations: 440.3 kB / 0.9696 GB, free: 2.641 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003794/1.743, allocations: 0.7801 MB / 0.9704 GB, free: 1.859 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009176/1.744, allocations: 91.98 kB / 0.9705 GB, free: 1.77 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003294/1.747, allocations: 1.802 MB / 0.9722 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.22e-07/1.747, allocations: 0 / 0.9722 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007449/1.755, allocations: 1.59 MB / 0.9738 GB, free: 14.38 MB / 0.5886 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 {(98,5.5%) 38} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.3814/2.136, allocations: 21.27 MB / 0.9945 GB, free: 109 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02262/2.159, allocations: 7.956 MB / 1.002 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/2.159, allocations: 0.75 kB / 1.002 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01921/2.178, allocations: 5.973 MB / 1.008 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/2.182, allocations: 249.9 kB / 1.008 GB, free: 107.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/2.201, allocations: 6.284 MB / 1.015 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/2.203, allocations: 2.535 MB / 1.017 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001772/2.205, allocations: 295.5 kB / 1.017 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/2.207, allocations: 1.937 MB / 1.019 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of SimCode: time 1.713e-06/2.207, allocations: 0 / 1.019 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/2.368, allocations: 107.1 MB / 1.124 GB, free: 77.22 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/2.368, allocations: 139.3 kB / 1.124 GB, free: 77.03 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.809/9.178, allocations: 0 / 1.124 GB, free: 77.03 MB / 0.5886 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)