Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_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.009448/0.009448, allocations: 171.8 kB / 15.12 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239 MB, free: 60 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009177/0.0009176, allocations: 104.4 kB / 290.2 MB, free: 4.559 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4814/0.4814, allocations: 78.58 MB / 419.9 MB, free: 36.39 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003853, allocations: 12 kB / 499.8 MB, free: 7.152 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1284, allocations: 69.36 MB / 0.5559 GB, free: 1.727 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01145/0.1399, allocations: 12.11 MB / 0.5677 GB, free: 5.57 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.007728/0.1477, allocations: 3.579 MB / 0.5712 GB, free: 1.98 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.1501, allocations: 32 kB / 0.5712 GB, free: 1.949 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.1519, allocations: 385 kB / 0.5716 GB, free: 1.57 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004573/0.1565, allocations: 1.34 MB / 0.5729 GB, free: 240 kB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.2652/0.4217, allocations: 1.267 MB / 0.5741 GB, free: 31.84 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.004621/0.4263, allocations: 2.372 MB / 0.5765 GB, free: 31.84 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.4274, allocations: 0.6989 MB / 0.5771 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.4294, allocations: 1.316 MB / 0.5784 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.4312, allocations: 1.669 MB / 0.5801 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003547/0.4316, allocations: 138.5 kB / 0.5802 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007277/0.4323, allocations: 257.7 kB / 0.5804 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004115/0.4327, allocations: 0.5777 MB / 0.581 GB, free: 31.73 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005615/0.4333, allocations: 0.521 MB / 0.5815 GB, free: 31.65 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002846/0.4361, allocations: 2.812 MB / 0.5842 GB, free: 31.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.4362, allocations: 0 / 0.5842 GB, free: 31.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.4362, allocations: 1.438 kB / 0.5842 GB, free: 31.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000116/0.4363, allocations: 0 / 0.5842 GB, free: 31.4 MB / 442.7 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.02394/0.4602, allocations: 6.156 MB / 0.5903 GB, free: 29.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/0.4603, allocations: 13.39 kB / 0.5903 GB, free: 29.64 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001764/0.4621, allocations: 307.2 kB / 0.5906 GB, free: 29.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01521/0.4773, allocations: 2.299 MB / 0.5928 GB, free: 29.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005541/0.4829, allocations: 1.766 MB / 0.5945 GB, free: 28.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008314/0.4838, allocations: 0.7504 MB / 0.5953 GB, free: 28.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001066/0.4848, allocations: 217.4 kB / 0.5955 GB, free: 28.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006943/0.4918, allocations: 3.2 MB / 0.5986 GB, free: 28.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.4919, allocations: 0 / 0.5986 GB, free: 28.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.4921, allocations: 88.02 kB / 0.5987 GB, free: 28.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-05/0.4922, allocations: 50.83 kB / 0.5987 GB, free: 28 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005981/0.4982, allocations: 2.978 MB / 0.6016 GB, free: 27.93 MB / 442.7 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.02095/0.5191, allocations: 10.42 MB / 0.6118 GB, free: 24.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/0.5312, allocations: 4.862 MB / 0.6166 GB, free: 24.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006139/0.5319, allocations: 43.92 kB / 0.6166 GB, free: 24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007225/0.5391, allocations: 2.416 MB / 0.619 GB, free: 23.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=248): time 1.042e-05/0.5392, allocations: 4 kB / 0.619 GB, free: 23.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.1235/0.6627, allocations: 33.53 MB / 0.6517 GB, free: 1.797 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.6629, allocations: 180.2 kB / 0.6519 GB, free: 1.582 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005002/0.6679, allocations: 2.254 MB / 0.6541 GB, free: 15.31 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001244/0.6692, allocations: 69.7 kB / 0.6542 GB, free: 15.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.6705, allocations: 1.169 MB / 0.6553 GB, free: 14.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/0.6723, allocations: 0.8696 MB / 0.6562 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000859/0.6731, allocations: 71.38 kB / 0.6562 GB, free: 13.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002934/0.6734, allocations: 424.8 kB / 0.6566 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005405/0.6789, allocations: 2.146 MB / 0.6587 GB, free: 10.56 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005765/0.6847, allocations: 2.497 MB / 0.6612 GB, free: 7.977 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005931/0.6906, allocations: 2.41 MB / 0.6635 GB, free: 5.527 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.128e-05/0.6907, allocations: 0 / 0.6635 GB, free: 5.527 MB / 458.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04872/0.7394, allocations: 15.17 MB / 0.6783 GB, free: 6.293 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.7395, allocations: 114.8 kB / 0.6784 GB, free: 6.156 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.232e-05/0.7396, allocations: 8 kB / 0.6784 GB, free: 6.148 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02089/0.7605, allocations: 6.412 MB / 0.6847 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/0.7636, allocations: 0.5695 MB / 0.6853 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07092/0.8346, allocations: 26.47 MB / 0.7111 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005493/0.8401, allocations: 0.5946 MB / 0.7117 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001166/0.8413, allocations: 116 kB / 0.7118 GB, free: 3.871 MB / 0.4948 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.002735/0.8441, allocations: 0.5318 MB / 0.7123 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001488/0.8456, allocations: 296.3 kB / 0.7126 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04486/0.8905, allocations: 14.73 MB / 0.727 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-05/0.8905, allocations: 27.95 kB / 0.727 GB, free: 4.227 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.643e-05/0.8906, allocations: 20 kB / 0.727 GB, free: 4.207 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.814e-05/0.8907, allocations: 12.89 kB / 0.7271 GB, free: 4.195 MB / 0.5105 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.05467/0.9454, allocations: 18.42 MB / 0.745 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-05/0.9455, allocations: 0 / 0.745 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/0.9475, allocations: 251.6 kB / 0.7453 GB, free: 1.402 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02079/0.9683, allocations: 6.231 MB / 0.7514 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001035/0.9694, allocations: 52 kB / 0.7514 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0651/1.034, allocations: 26.87 MB / 0.7777 GB, free: 15.83 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.035, allocations: 7.938 kB / 0.7777 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2927/1.327, allocations: 17.32 MB / 0.7946 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.328, allocations: 419.5 kB / 0.795 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008083/1.329, allocations: 50.72 kB / 0.795 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.333, allocations: 409.6 kB / 0.7954 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001967/1.335, allocations: 0.5824 MB / 0.796 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002188/1.335, allocations: 66.39 kB / 0.7961 GB, free: 167.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00222/1.337, allocations: 1.481 MB / 0.7975 GB, free: 167.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.81e-07/1.337, allocations: 0 / 0.7975 GB, free: 167.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004088/1.341, allocations: 1.18 MB / 0.7987 GB, free: 167.7 MB / 0.573 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.04845/1.39, allocations: 18.09 MB / 0.8163 GB, free: 166.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01927/1.409, allocations: 7.502 MB / 0.8236 GB, free: 164.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.409, allocations: 4.203 kB / 0.8236 GB, free: 164.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0155/1.424, allocations: 5.074 MB / 0.8286 GB, free: 163.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/1.427, allocations: 221.3 kB / 0.8288 GB, free: 163.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/1.443, allocations: 11.73 MB / 0.8403 GB, free: 154.6 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/1.445, allocations: 1.867 MB / 0.8421 GB, free: 153.8 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00139/1.446, allocations: 260.6 kB / 0.8423 GB, free: 153.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.447, allocations: 1.215 MB / 0.8435 GB, free: 152.8 MB / 0.573 GB Notification: Performance of SimCode: time 9.91e-07/1.447, allocations: 1.219 kB / 0.8435 GB, free: 152.8 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1236/1.571, allocations: 78.93 MB / 0.9206 GB, free: 94.99 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/1.571, allocations: 230.1 kB / 0.9208 GB, free: 94.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.129/6.7, allocations: 0 / 0.9208 GB, free: 94.75 MB / 0.573 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)