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.009585/0.009585, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.45/1.45, allocations: 222.9 MB / 239.4 MB, free: 4.371 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.001593/0.001593, allocations: 188.5 kB / 289.7 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5233/0.5233, allocations: 78.54 MB / 418.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 75.88 kB / 0.5532 GB, free: 1.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4365/0.4383, allocations: 68.17 MB / 0.6198 GB, free: 9.27 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01342/0.4518, allocations: 13.68 MB / 0.6331 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009817/0.4617, allocations: 3.468 MB / 0.6365 GB, free: 8.898 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003459/0.4652, allocations: 28 kB / 0.6365 GB, free: 8.871 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002542/0.4678, allocations: 0.5615 MB / 0.6371 GB, free: 8.301 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006818/0.4746, allocations: 1.567 MB / 0.6386 GB, free: 6.734 MB / 446.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.004556/0.4792, allocations: 1.515 MB / 0.6401 GB, free: 5.238 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007197/0.4864, allocations: 3.725 MB / 0.6437 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.4886, allocations: 0.8956 MB / 0.6446 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003267/0.4919, allocations: 1.536 MB / 0.6461 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003439/0.4954, allocations: 1.952 MB / 0.648 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001549/0.497, allocations: 284 kB / 0.6483 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.4992, allocations: 435.8 kB / 0.6487 GB, free: 12.34 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.5008, allocations: 0.7584 MB / 0.6494 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003804/0.5046, allocations: 1.631 MB / 0.651 GB, free: 9.941 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007476/0.5121, allocations: 3.966 MB / 0.6549 GB, free: 5.961 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.5122, allocations: 3.938 kB / 0.6549 GB, free: 5.957 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5122, allocations: 4 kB / 0.6549 GB, free: 5.953 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001863/0.5124, allocations: 4 kB / 0.6549 GB, free: 5.949 MB / 462.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.02551/0.5379, allocations: 6.578 MB / 0.6613 GB, free: 15.27 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.538, allocations: 12.03 kB / 0.6614 GB, free: 15.26 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001052/0.539, allocations: 299.3 kB / 0.6616 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01545/0.5545, allocations: 2.275 MB / 0.6639 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005694/0.5602, allocations: 1.871 MB / 0.6657 GB, free: 10.74 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009567/0.5612, allocations: 0.7328 MB / 0.6664 GB, free: 9.895 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/0.5624, allocations: 216 kB / 0.6666 GB, free: 9.684 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008957/0.5714, allocations: 3.035 MB / 0.6696 GB, free: 6.57 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.312e-05/0.5715, allocations: 4 kB / 0.6696 GB, free: 6.566 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006332/0.5722, allocations: 83.94 kB / 0.6697 GB, free: 6.484 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.273e-05/0.5722, allocations: 48 kB / 0.6697 GB, free: 6.438 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007426/0.5797, allocations: 2.784 MB / 0.6724 GB, free: 3.637 MB / 478.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.0237/0.6034, allocations: 9.817 MB / 0.682 GB, free: 9.391 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/0.6151, allocations: 4.188 MB / 0.6861 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004589/0.6197, allocations: 1.964 MB / 0.688 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004965/0.6202, allocations: 41.95 kB / 0.6881 GB, free: 3.062 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005579/0.6258, allocations: 2.228 MB / 0.6902 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 8.215e-06/0.6259, allocations: 0 / 0.6902 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.115/0.7409, allocations: 27.3 MB / 0.7169 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.741, allocations: 180.2 kB / 0.7171 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004738/0.7458, allocations: 2.273 MB / 0.7193 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008383/0.7467, allocations: 73.7 kB / 0.7194 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.748, allocations: 1.164 MB / 0.7205 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001824/0.7498, allocations: 0.8742 MB / 0.7214 GB, free: 0.7383 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00275/0.7526, allocations: 0.5618 MB / 0.7219 GB, free: 172 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.7527, allocations: 305.1 kB / 0.7222 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005033/0.7578, allocations: 1.958 MB / 0.7241 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005302/0.7631, allocations: 2.314 MB / 0.7264 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05644/0.8196, allocations: 14.03 MB / 0.7401 GB, free: 13.24 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.708e-05/0.8197, allocations: 11.94 kB / 0.7401 GB, free: 13.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04458/0.8643, allocations: 12.5 MB / 0.7523 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.8645, allocations: 114.8 kB / 0.7524 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.618e-05/0.8645, allocations: 8 kB / 0.7524 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01821/0.8827, allocations: 5.288 MB / 0.7576 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003174/0.8859, allocations: 0.5695 MB / 0.7581 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4388/1.325, allocations: 23.16 MB / 0.7807 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/1.329, allocations: 489.8 kB / 0.7812 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00056/1.33, allocations: 124.1 kB / 0.7813 GB, free: 121 MB / 0.5606 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.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 (330): * Single equations (assignments): 325 * 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.00131/1.331, allocations: 0.5312 MB / 0.7818 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006796/1.332, allocations: 297.1 kB / 0.7821 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03505/1.367, allocations: 11.9 MB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-05/1.367, allocations: 23.75 kB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.38e-05/1.367, allocations: 19.72 kB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.218e-05/1.367, allocations: 18.08 kB / 0.7938 GB, free: 118.2 MB / 0.5606 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.03973/1.407, allocations: 15.5 MB / 0.8089 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.392e-05/1.407, allocations: 0 / 0.8089 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/1.408, allocations: 247.7 kB / 0.8092 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01552/1.424, allocations: 5.25 MB / 0.8143 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007962/1.425, allocations: 55.98 kB / 0.8144 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04904/1.474, allocations: 24.93 MB / 0.8387 GB, free: 78.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.474, allocations: 0 / 0.8387 GB, free: 78.37 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03895/1.513, allocations: 14.28 MB / 0.8527 GB, free: 63.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.514, allocations: 402.5 kB / 0.853 GB, free: 63.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006633/1.515, allocations: 48 kB / 0.8531 GB, free: 63.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002791/1.518, allocations: 303.6 kB / 0.8534 GB, free: 63.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00211/1.52, allocations: 0.5802 MB / 0.8539 GB, free: 62.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.52, allocations: 67.98 kB / 0.854 GB, free: 62.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001987/1.522, allocations: 1.495 MB / 0.8555 GB, free: 61.08 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/1.522, allocations: 0 / 0.8555 GB, free: 61.08 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003826/1.526, allocations: 1.178 MB / 0.8566 GB, free: 59.9 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 (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 {(65,23,7.8%)} * 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.03901/1.565, allocations: 14.91 MB / 0.8712 GB, free: 44.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01631/1.581, allocations: 6.625 MB / 0.8776 GB, free: 38.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/1.581, allocations: 0 / 0.8776 GB, free: 38.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01246/1.594, allocations: 4.4 MB / 0.8819 GB, free: 33.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/1.596, allocations: 263.3 kB / 0.8822 GB, free: 33.45 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1006/1.697, allocations: 41.78 MB / 0.923 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/1.699, allocations: 1.806 MB / 0.9248 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001257/1.7, allocations: 254.5 kB / 0.925 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/1.702, allocations: 1.233 MB / 0.9262 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of SimCode: time 1.743e-06/1.702, allocations: 4 kB / 0.9262 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2057/1.907, allocations: 87.72 MB / 1.012 GB, free: 12.41 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.9/20.81, allocations: 5.109 kB / 1.012 GB, free: 12.41 MB / 0.67 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/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)