Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 238.9 MB, free: 5.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 193 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4836/0.4836, allocations: 78.53 MB / 419.8 MB, free: 4.336 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.000377, allocations: 8 kB / 499.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1729, allocations: 69.36 MB / 0.5558 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.299/0.472, allocations: 12.11 MB / 0.5676 GB, free: 36.13 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008162/0.4803, allocations: 3.578 MB / 0.5711 GB, free: 33.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003652/0.484, allocations: 32.72 kB / 0.5711 GB, free: 33.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002872/0.4869, allocations: 394 kB / 0.5715 GB, free: 33.38 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00688/0.4938, allocations: 1.339 MB / 0.5728 GB, free: 32.47 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003808/0.4976, allocations: 1.269 MB / 0.574 GB, free: 31.89 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005423/0.503, allocations: 2.374 MB / 0.5764 GB, free: 30.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.5043, allocations: 0.6922 MB / 0.577 GB, free: 30.31 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.5069, allocations: 1.322 MB / 0.5783 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003247/0.5101, allocations: 1.661 MB / 0.5799 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001469/0.5116, allocations: 145.5 kB / 0.5801 GB, free: 28.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002255/0.5139, allocations: 254.4 kB / 0.5803 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001442/0.5154, allocations: 0.5811 MB / 0.5809 GB, free: 28.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.517, allocations: 0.5217 MB / 0.5814 GB, free: 28.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004597/0.5217, allocations: 2.813 MB / 0.5841 GB, free: 27.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5217, allocations: 0 / 0.5841 GB, free: 27.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.5217, allocations: 0 / 0.5841 GB, free: 27.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001946/0.5219, allocations: 4 kB / 0.5842 GB, free: 27.38 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02205/0.544, allocations: 6.152 MB / 0.5902 GB, free: 25.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.544, allocations: 9.594 kB / 0.5902 GB, free: 25.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001001/0.545, allocations: 304.7 kB / 0.5905 GB, free: 24.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/0.5605, allocations: 2.3 MB / 0.5927 GB, free: 24.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005837/0.5663, allocations: 1.763 MB / 0.5944 GB, free: 23.45 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008106/0.5672, allocations: 0.7557 MB / 0.5952 GB, free: 22.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000626/0.5678, allocations: 219.2 kB / 0.5954 GB, free: 22.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007113/0.575, allocations: 3.201 MB / 0.5985 GB, free: 21.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.575, allocations: 0.5625 kB / 0.5985 GB, free: 21.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.5753, allocations: 83.19 kB / 0.5986 GB, free: 21.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.224e-05/0.5753, allocations: 55.05 kB / 0.5986 GB, free: 21.48 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006966/0.5823, allocations: 2.977 MB / 0.6015 GB, free: 20.5 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02344/0.6058, allocations: 10.42 MB / 0.6117 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/0.6185, allocations: 4.861 MB / 0.6165 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005753/0.6192, allocations: 45.38 kB / 0.6165 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005475/0.6246, allocations: 2.414 MB / 0.6189 GB, free: 11.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.739e-06/0.6247, allocations: 4 kB / 0.6189 GB, free: 11.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1181/0.7428, allocations: 33.53 MB / 0.6516 GB, free: 11.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.7429, allocations: 188.2 kB / 0.6518 GB, free: 11.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/0.7465, allocations: 2.257 MB / 0.654 GB, free: 8.848 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008594/0.7474, allocations: 69.7 kB / 0.6541 GB, free: 8.773 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008748/0.7483, allocations: 1.164 MB / 0.6552 GB, free: 7.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.7495, allocations: 0.8665 MB / 0.656 GB, free: 6.719 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.7497, allocations: 64 kB / 0.6561 GB, free: 6.656 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.7499, allocations: 428.8 kB / 0.6565 GB, free: 6.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004549/0.7545, allocations: 2.148 MB / 0.6586 GB, free: 4.082 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004974/0.7595, allocations: 2.497 MB / 0.6611 GB, free: 1.496 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005168/0.7647, allocations: 2.411 MB / 0.6634 GB, free: 15.04 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/0.7647, allocations: 4 kB / 0.6634 GB, free: 15.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04552/0.8103, allocations: 15.17 MB / 0.6782 GB, free: 15.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.8104, allocations: 118.8 kB / 0.6783 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/0.8105, allocations: 4 kB / 0.6783 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02118/0.8316, allocations: 6.413 MB / 0.6846 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/0.8349, allocations: 0.5703 MB / 0.6852 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0671/0.9021, allocations: 26.48 MB / 0.711 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/0.9075, allocations: 0.5909 MB / 0.7116 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006632/0.9082, allocations: 119.9 kB / 0.7117 GB, free: 13.36 MB / 0.5137 GB Warning: Assuming fixed start value for the following 7 variables: Exc2.firstOrder2.y:VARIABLE(flow=false start = Exc2.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real Exc1.firstOrder2.y:VARIABLE(flow=false start = Exc1.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (327): * Single equations (assignments): 322 * Array equations: 0 * Algorithm blocks: 4 * 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 {65 26} Notification: Performance of prepare postOptimizeDAE: time 0.001578/0.9098, allocations: 0.5326 MB / 0.7122 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/0.9107, allocations: 292.3 kB / 0.7125 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04403/0.9547, allocations: 14.73 MB / 0.7269 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-05/0.9548, allocations: 31.94 kB / 0.7269 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-05/0.9548, allocations: 20.94 kB / 0.7269 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.634e-05/0.9549, allocations: 11.95 kB / 0.727 GB, free: 13.68 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.05258/1.008, allocations: 18.42 MB / 0.745 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/1.008, allocations: 0 / 0.745 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/1.009, allocations: 243.6 kB / 0.7452 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01973/1.029, allocations: 6.238 MB / 0.7513 GB, free: 4.582 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009412/1.03, allocations: 47.98 kB / 0.7513 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.393/1.423, allocations: 26.87 MB / 0.7776 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.423, allocations: 2.969 kB / 0.7776 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05025/1.473, allocations: 17.32 MB / 0.7945 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/1.475, allocations: 414.5 kB / 0.7949 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001073/1.476, allocations: 46.03 kB / 0.7949 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003607/1.48, allocations: 411.5 kB / 0.7953 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002274/1.482, allocations: 0.5803 MB / 0.7959 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002904/1.482, allocations: 69.5 kB / 0.796 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002872/1.485, allocations: 1.482 MB / 0.7974 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/1.485, allocations: 0 / 0.7974 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004917/1.49, allocations: 1.181 MB / 0.7986 GB, free: 161.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(65,7.8%) 23} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05411/1.544, allocations: 18.08 MB / 0.8162 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01988/1.564, allocations: 7.502 MB / 0.8235 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.564, allocations: 0 / 0.8235 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01448/1.579, allocations: 5.081 MB / 0.8285 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/1.581, allocations: 225.3 kB / 0.8287 GB, free: 150 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/1.594, allocations: 11.72 MB / 0.8402 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001262/1.596, allocations: 1.874 MB / 0.842 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001178/1.597, allocations: 257.5 kB / 0.8422 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/1.598, allocations: 1.22 MB / 0.8434 GB, free: 136 MB / 0.5606 GB Notification: Performance of SimCode: time 1.743e-06/1.598, allocations: 0 / 0.8434 GB, free: 136 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/1.714, allocations: 78.92 MB / 0.9205 GB, free: 59 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/1.714, allocations: 208.4 kB / 0.9207 GB, free: 58.76 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.737/6.452, allocations: 3.625 kB / 0.9207 GB, free: 58.76 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: