Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_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.001447/0.001447, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.298/1.298, allocations: 222.9 MB / 239 MB, free: 4.719 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.001781/0.001781, allocations: 188.5 kB / 289.2 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4406/0.4406, allocations: 78.52 MB / 417.9 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 75.88 kB / 497 MB, free: 6.594 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1458, allocations: 68.18 MB / 0.552 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.2373/0.3831, allocations: 14.56 MB / 0.5662 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008399/0.3915, allocations: 3.618 MB / 0.5697 GB, free: 29.84 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003613/0.3952, allocations: 39.19 kB / 0.5698 GB, free: 29.84 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001933/0.3972, allocations: 435.9 kB / 0.5702 GB, free: 29.69 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005057/0.4023, allocations: 1.23 MB / 0.5714 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003404/0.4057, allocations: 1.422 MB / 0.5728 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005457/0.4111, allocations: 3.755 MB / 0.5764 GB, free: 28.08 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.4131, allocations: 0.8985 MB / 0.5773 GB, free: 27.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002587/0.4157, allocations: 1.563 MB / 0.5788 GB, free: 27.42 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.4187, allocations: 1.984 MB / 0.5808 GB, free: 26.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.42, allocations: 291.8 kB / 0.581 GB, free: 26.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002065/0.4221, allocations: 438.5 kB / 0.5815 GB, free: 26.71 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001264/0.4233, allocations: 0.7733 MB / 0.5822 GB, free: 26.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001851/0.4252, allocations: 1.662 MB / 0.5838 GB, free: 25.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003691/0.4289, allocations: 3.965 MB / 0.5877 GB, free: 23.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4289, allocations: 1.188 kB / 0.5877 GB, free: 23.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4289, allocations: 3.938 kB / 0.5877 GB, free: 23.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.986e-05/0.429, allocations: 0 / 0.5877 GB, free: 23.23 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02258/0.4516, allocations: 6.646 MB / 0.5942 GB, free: 20.59 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4517, allocations: 8.969 kB / 0.5942 GB, free: 20.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003818/0.4521, allocations: 298.3 kB / 0.5945 GB, free: 20.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/0.4666, allocations: 2.282 MB / 0.5967 GB, free: 19.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005159/0.4718, allocations: 1.89 MB / 0.5986 GB, free: 18.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008459/0.4727, allocations: 0.7274 MB / 0.5993 GB, free: 18.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/0.4738, allocations: 224.7 kB / 0.5995 GB, free: 18.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009213/0.4831, allocations: 3.046 MB / 0.6025 GB, free: 16.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.406e-05/0.4832, allocations: 0 / 0.6025 GB, free: 16.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006488/0.4838, allocations: 85.58 kB / 0.6026 GB, free: 16.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-05/0.4839, allocations: 50.25 kB / 0.6026 GB, free: 16.84 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007022/0.4909, allocations: 2.793 MB / 0.6053 GB, free: 15.9 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.0224/0.5134, allocations: 9.939 MB / 0.615 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.5247, allocations: 4.2 MB / 0.6191 GB, free: 8.371 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004486/0.5293, allocations: 1.976 MB / 0.6211 GB, free: 7.355 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005436/0.5298, allocations: 47.73 kB / 0.6211 GB, free: 7.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005386/0.5352, allocations: 2.248 MB / 0.6233 GB, free: 5.793 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 7.604e-06/0.5353, allocations: 0 / 0.6233 GB, free: 5.793 MB / 430.1 MB Notification: Performance of matching and sorting (n=249): time 0.1155/0.6508, allocations: 27.42 MB / 0.6501 GB, free: 10.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.651, allocations: 192.2 kB / 0.6503 GB, free: 10.03 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004782/0.6558, allocations: 2.313 MB / 0.6525 GB, free: 7.695 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000845/0.6567, allocations: 65.7 kB / 0.6526 GB, free: 7.625 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.6578, allocations: 1.184 MB / 0.6537 GB, free: 6.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001623/0.6595, allocations: 0.878 MB / 0.6546 GB, free: 5.539 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001748/0.6612, allocations: 0.5697 MB / 0.6552 GB, free: 4.961 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.6614, allocations: 301.1 kB / 0.6554 GB, free: 4.664 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004214/0.6656, allocations: 1.974 MB / 0.6574 GB, free: 2.688 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004518/0.6701, allocations: 2.343 MB / 0.6597 GB, free: 264 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05501/0.7252, allocations: 14.29 MB / 0.6736 GB, free: 1.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.576e-05/0.7252, allocations: 3.938 kB / 0.6736 GB, free: 1.746 MB / 478.1 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04062/0.7658, allocations: 12.54 MB / 0.6859 GB, free: 5.133 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.7661, allocations: 122.8 kB / 0.686 GB, free: 4.988 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.7661, allocations: 4 kB / 0.686 GB, free: 4.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01796/0.7841, allocations: 5.261 MB / 0.6911 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003534/0.7876, allocations: 0.5895 MB / 0.6917 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05896/0.8466, allocations: 23.2 MB / 0.7144 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005368/0.8521, allocations: 485.7 kB / 0.7148 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007051/0.8528, allocations: 120 kB / 0.7149 GB, free: 7.168 MB / 0.5137 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Syn2.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Syn2.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 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 329 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001618/0.8544, allocations: 0.5345 MB / 0.7155 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008647/0.8553, allocations: 308.3 kB / 0.7158 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03944/0.8947, allocations: 11.93 MB / 0.7274 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.853e-05/0.8948, allocations: 24 kB / 0.7274 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-05/0.8949, allocations: 24 kB / 0.7275 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.859e-05/0.895, allocations: 11.95 kB / 0.7275 GB, free: 10.23 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.04532/0.9403, allocations: 15.56 MB / 0.7427 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.99e-05/0.9403, allocations: 0.75 kB / 0.7427 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.942, allocations: 247.6 kB / 0.7429 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01715/0.9591, allocations: 5.313 MB / 0.7481 GB, free: 4.883 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007176/0.9599, allocations: 51.92 kB / 0.7481 GB, free: 4.832 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3098/1.27, allocations: 24.95 MB / 0.7725 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.27, allocations: 0 / 0.7725 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04234/1.312, allocations: 14.31 MB / 0.7865 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.313, allocations: 409.2 kB / 0.7869 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007739/1.314, allocations: 50.11 kB / 0.7869 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00304/1.317, allocations: 302.3 kB / 0.7872 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002235/1.319, allocations: 0.5811 MB / 0.7878 GB, free: 163 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002332/1.32, allocations: 65.47 kB / 0.7878 GB, free: 163 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002222/1.322, allocations: 1.532 MB / 0.7893 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.322, allocations: 0 / 0.7893 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003754/1.326, allocations: 1.182 MB / 0.7905 GB, free: 162.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e2q,Syn2.e2d,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 (158): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(67,21,7.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04642/1.372, allocations: 14.93 MB / 0.8051 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02122/1.393, allocations: 6.774 MB / 0.8117 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.393, allocations: 0 / 0.8117 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01257/1.406, allocations: 4.441 MB / 0.816 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/1.409, allocations: 267 kB / 0.8163 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1049/1.514, allocations: 47.45 MB / 0.8626 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/1.515, allocations: 1.811 MB / 0.8644 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001314/1.516, allocations: 266.9 kB / 0.8646 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/1.518, allocations: 1.241 MB / 0.8659 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of SimCode: time 7.71e-07/1.518, allocations: 0 / 0.8659 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/1.63, allocations: 85.05 MB / 0.9489 GB, free: 26.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/1.631, allocations: 233.4 kB / 0.9491 GB, free: 25.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.201/5.831, allocations: 3.875 kB / 0.9491 GB, free: 25.98 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)