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.001169/0.001169, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 239.3 MB, free: 4.617 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.001523/0.001523, allocations: 192.5 kB / 289.6 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4612/0.4612, allocations: 78.53 MB / 418.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001838, allocations: 76.17 kB / 497.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1386, allocations: 68.18 MB / 0.5525 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2687/0.4074, allocations: 13.68 MB / 0.5658 GB, free: 31.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007896/0.4154, allocations: 3.454 MB / 0.5692 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003457/0.4189, allocations: 33.94 kB / 0.5692 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.4207, allocations: 0.5538 MB / 0.5698 GB, free: 30.04 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005022/0.4258, allocations: 1.417 MB / 0.5712 GB, free: 29.31 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.003492/0.4293, allocations: 1.517 MB / 0.5726 GB, free: 29.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005099/0.4344, allocations: 3.695 MB / 0.5763 GB, free: 28.28 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.4357, allocations: 0.8991 MB / 0.5771 GB, free: 28.08 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.4381, allocations: 1.521 MB / 0.5786 GB, free: 27.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002006/0.4401, allocations: 1.956 MB / 0.5805 GB, free: 27.13 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004987/0.4406, allocations: 283 kB / 0.5808 GB, free: 27.13 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009853/0.4416, allocations: 431.7 kB / 0.5812 GB, free: 27.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005417/0.4421, allocations: 0.7621 MB / 0.582 GB, free: 26.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.4435, allocations: 1.631 MB / 0.5835 GB, free: 25.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003725/0.4472, allocations: 3.919 MB / 0.5874 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4472, allocations: 0 / 0.5874 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.4472, allocations: 4 kB / 0.5874 GB, free: 23.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.054e-05/0.4473, allocations: 0 / 0.5874 GB, free: 23.66 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.0237/0.471, allocations: 6.575 MB / 0.5938 GB, free: 21.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.4711, allocations: 10.12 kB / 0.5938 GB, free: 21.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004058/0.4715, allocations: 303.7 kB / 0.5941 GB, free: 20.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01507/0.4866, allocations: 2.276 MB / 0.5963 GB, free: 20.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004603/0.4912, allocations: 1.871 MB / 0.5981 GB, free: 19.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006881/0.492, allocations: 0.724 MB / 0.5989 GB, free: 18.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005475/0.4925, allocations: 215.2 kB / 0.5991 GB, free: 18.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006793/0.4993, allocations: 3.039 MB / 0.602 GB, free: 17.37 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.4994, allocations: 1.375 kB / 0.602 GB, free: 17.37 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/0.4996, allocations: 85.14 kB / 0.6021 GB, free: 17.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.034e-05/0.4997, allocations: 49.5 kB / 0.6022 GB, free: 17.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006074/0.5058, allocations: 2.795 MB / 0.6049 GB, free: 16.36 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.02049/0.5263, allocations: 9.881 MB / 0.6145 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.5372, allocations: 4.191 MB / 0.6186 GB, free: 8.805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004589/0.5419, allocations: 1.968 MB / 0.6206 GB, free: 7.793 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005105/0.5424, allocations: 46.33 kB / 0.6206 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00573/0.5482, allocations: 2.227 MB / 0.6228 GB, free: 6.496 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 1.494e-05/0.5482, allocations: 0 / 0.6228 GB, free: 6.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1149/0.6631, allocations: 27.3 MB / 0.6494 GB, free: 11.22 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.6633, allocations: 188.2 kB / 0.6496 GB, free: 11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004892/0.6682, allocations: 2.269 MB / 0.6518 GB, free: 8.707 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009617/0.6692, allocations: 69.7 kB / 0.6519 GB, free: 8.633 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.6704, allocations: 1.164 MB / 0.653 GB, free: 7.457 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001843/0.6722, allocations: 0.8704 MB / 0.6539 GB, free: 6.574 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002611/0.6748, allocations: 0.5579 MB / 0.6544 GB, free: 6.008 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.6749, allocations: 309.1 kB / 0.6547 GB, free: 5.703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004766/0.6797, allocations: 1.951 MB / 0.6566 GB, free: 3.75 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00509/0.6848, allocations: 2.33 MB / 0.6589 GB, free: 1.332 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05526/0.7401, allocations: 14.07 MB / 0.6726 GB, free: 3.039 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.421e-05/0.7402, allocations: 7.938 kB / 0.6727 GB, free: 3.031 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04369/0.7839, allocations: 12.5 MB / 0.6849 GB, free: 6.461 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.7841, allocations: 126.8 kB / 0.685 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.94e-05/0.7841, allocations: 4 kB / 0.685 GB, free: 6.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01824/0.8024, allocations: 5.288 MB / 0.6902 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003165/0.8056, allocations: 0.5661 MB / 0.6907 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0642/0.8698, allocations: 23.2 MB / 0.7134 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005325/0.8752, allocations: 493.1 kB / 0.7138 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009741/0.8762, allocations: 128.6 kB / 0.714 GB, free: 8.469 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 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.002582/0.8788, allocations: 0.5262 MB / 0.7145 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/0.8803, allocations: 302.3 kB / 0.7148 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04214/0.9225, allocations: 11.9 MB / 0.7264 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.737e-05/0.9226, allocations: 28.75 kB / 0.7264 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.614e-05/0.9227, allocations: 16 kB / 0.7264 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001083/0.9228, allocations: 11.95 kB / 0.7264 GB, free: 11.62 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.052/0.9748, allocations: 15.5 MB / 0.7416 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.643e-05/0.9749, allocations: 8 kB / 0.7416 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/0.9768, allocations: 248.7 kB / 0.7418 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01822/0.9951, allocations: 5.251 MB / 0.7469 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008079/0.9959, allocations: 51.98 kB / 0.747 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3421/1.338, allocations: 24.96 MB / 0.7714 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/1.338, allocations: 2.219 kB / 0.7714 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04459/1.383, allocations: 14.27 MB / 0.7853 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/1.384, allocations: 409.7 kB / 0.7857 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007284/1.385, allocations: 45.42 kB / 0.7857 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003078/1.388, allocations: 300.6 kB / 0.786 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002134/1.39, allocations: 0.584 MB / 0.7866 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002188/1.39, allocations: 72.5 kB / 0.7867 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002409/1.393, allocations: 1.499 MB / 0.7881 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.393, allocations: 0 / 0.7881 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003892/1.396, allocations: 1.173 MB / 0.7893 GB, free: 164.6 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.04724/1.444, allocations: 14.91 MB / 0.8038 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02358/1.467, allocations: 6.732 MB / 0.8104 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/1.467, allocations: 1.125 kB / 0.8104 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01401/1.481, allocations: 4.403 MB / 0.8147 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004317/1.486, allocations: 271.7 kB / 0.815 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1148/1.601, allocations: 46.03 MB / 0.8599 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/1.603, allocations: 1.816 MB / 0.8617 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001697/1.604, allocations: 259.1 kB / 0.8619 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/1.606, allocations: 1.229 MB / 0.8631 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of SimCode: time 9.41e-07/1.606, allocations: 0 / 0.8631 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1275/1.734, allocations: 86.73 MB / 0.9478 GB, free: 27.99 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/16.1, allocations: 14.55 kB / 0.9478 GB, free: 27.98 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/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)