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.008169/0.008169, allocations: 167.2 kB / 15.13 MB, free: 5.598 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.342/1.342, allocations: 223.3 MB / 239.1 MB, free: 16 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.0008232/0.0008231, allocations: 92.09 kB / 290.3 MB, free: 4.562 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4906/0.4906, allocations: 78.61 MB / 420 MB, free: 36.49 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005144/0.0005145, allocations: 8 kB / 500 MB, free: 7.145 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1657, allocations: 69.37 MB / 0.556 GB, free: 1.715 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01195/0.1777, allocations: 12.84 MB / 0.5685 GB, free: 4.832 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0092/0.1869, allocations: 3.445 MB / 0.5719 GB, free: 1.375 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00273/0.1897, allocations: 32 kB / 0.5719 GB, free: 1.344 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.1912, allocations: 389 kB / 0.5723 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2292/0.4204, allocations: 1.187 MB / 0.5735 GB, free: 31.59 MB / 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.003572/0.424, allocations: 1.282 MB / 0.5747 GB, free: 31.59 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.004729/0.4287, allocations: 3.335 MB / 0.578 GB, free: 31.59 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.4304, allocations: 0.6909 MB / 0.5786 GB, free: 31.48 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.4329, allocations: 1.311 MB / 0.5799 GB, free: 31.22 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.4355, allocations: 1.713 MB / 0.5816 GB, free: 30.84 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004547/0.4359, allocations: 141.2 kB / 0.5817 GB, free: 30.84 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000856/0.4368, allocations: 264.3 kB / 0.582 GB, free: 30.84 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004089/0.4372, allocations: 0.5913 MB / 0.5826 GB, free: 30.69 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007108/0.4379, allocations: 0.5224 MB / 0.5831 GB, free: 30.54 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.4407, allocations: 2.937 MB / 0.5859 GB, free: 30.22 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.4407, allocations: 0 / 0.5859 GB, free: 30.22 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4407, allocations: 0 / 0.5859 GB, free: 30.22 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.444e-05/0.4408, allocations: 0 / 0.5859 GB, free: 30.22 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.02337/0.4642, allocations: 6.158 MB / 0.592 GB, free: 28.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4642, allocations: 10.97 kB / 0.592 GB, free: 28.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001388/0.4656, allocations: 302.5 kB / 0.5923 GB, free: 28.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01507/0.4807, allocations: 2.302 MB / 0.5945 GB, free: 28.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004267/0.485, allocations: 1.768 MB / 0.5962 GB, free: 27.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006279/0.4857, allocations: 0.7554 MB / 0.597 GB, free: 27.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005591/0.4863, allocations: 217.6 kB / 0.5972 GB, free: 27.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006095/0.4924, allocations: 3.214 MB / 0.6003 GB, free: 26.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.4924, allocations: 0 / 0.6003 GB, free: 26.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.4927, allocations: 81.47 kB / 0.6004 GB, free: 26.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.4927, allocations: 57.55 kB / 0.6004 GB, free: 26.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005985/0.4987, allocations: 2.973 MB / 0.6034 GB, free: 26.74 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.01821/0.517, allocations: 10.13 MB / 0.6132 GB, free: 24.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/0.5285, allocations: 4.857 MB / 0.618 GB, free: 22.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004749/0.5333, allocations: 2.159 MB / 0.6201 GB, free: 21.79 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002947/0.5336, allocations: 38.28 kB / 0.6201 GB, free: 21.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005186/0.5388, allocations: 2.424 MB / 0.6225 GB, free: 20.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=248): time 5.711e-06/0.5388, allocations: 3.703 kB / 0.6225 GB, free: 20.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.1252/0.6641, allocations: 33.5 MB / 0.6552 GB, free: 13.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.6642, allocations: 188.2 kB / 0.6554 GB, free: 13.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.6681, allocations: 2.25 MB / 0.6576 GB, free: 10.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007772/0.6689, allocations: 73.7 kB / 0.6577 GB, free: 10.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000976/0.6699, allocations: 1.162 MB / 0.6588 GB, free: 9.703 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001188/0.6711, allocations: 0.8742 MB / 0.6596 GB, free: 8.836 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.6713, allocations: 64 kB / 0.6597 GB, free: 8.773 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.6715, allocations: 428.8 kB / 0.6601 GB, free: 8.348 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004759/0.6763, allocations: 2.138 MB / 0.6622 GB, free: 6.207 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005172/0.6815, allocations: 2.522 MB / 0.6647 GB, free: 3.598 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005212/0.6867, allocations: 2.403 MB / 0.667 GB, free: 1.152 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.6868, allocations: 3.953 kB / 0.667 GB, free: 1.148 MB / 458.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04724/0.734, allocations: 15.17 MB / 0.6818 GB, free: 1.918 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.7342, allocations: 115.6 kB / 0.6819 GB, free: 1.781 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.7342, allocations: 12.62 kB / 0.682 GB, free: 1.773 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02138/0.7556, allocations: 6.413 MB / 0.6882 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/0.759, allocations: 0.5733 MB / 0.6888 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06497/0.824, allocations: 25.13 MB / 0.7133 GB, free: 1.543 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004959/0.829, allocations: 0.5922 MB / 0.7139 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000397/0.8294, allocations: 120 kB / 0.714 GB, free: 0.832 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.001415/0.8309, allocations: 0.5303 MB / 0.7145 GB, free: 292 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/0.8315, allocations: 296.4 kB / 0.7148 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0465/0.878, allocations: 14.73 MB / 0.7292 GB, free: 1.215 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/0.8781, allocations: 32 kB / 0.7292 GB, free: 1.184 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.14e-05/0.8781, allocations: 18.34 kB / 0.7292 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.225e-05/0.8782, allocations: 11.95 kB / 0.7293 GB, free: 1.156 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.05132/0.9295, allocations: 18.33 MB / 0.7472 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.433e-05/0.9296, allocations: 0 / 0.7472 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/0.9315, allocations: 243.7 kB / 0.7474 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01999/0.9515, allocations: 6.233 MB / 0.7535 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008418/0.9524, allocations: 55.94 kB / 0.7535 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06121/1.014, allocations: 25.5 MB / 0.7784 GB, free: 14.28 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.014, allocations: 0 / 0.7784 GB, free: 14.28 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2877/1.301, allocations: 17.28 MB / 0.7953 GB, free: 166.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009869/1.302, allocations: 411.8 kB / 0.7957 GB, free: 166.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004376/1.303, allocations: 46.58 kB / 0.7957 GB, free: 166.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003116/1.306, allocations: 412.4 kB / 0.7961 GB, free: 166.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001909/1.308, allocations: 0.5792 MB / 0.7967 GB, free: 166.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.308, allocations: 65.72 kB / 0.7968 GB, free: 166.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002139/1.31, allocations: 1.486 MB / 0.7982 GB, free: 166 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.353e-06/1.31, allocations: 1.219 kB / 0.7982 GB, free: 166 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003152/1.313, allocations: 1.181 MB / 0.7994 GB, free: 166 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.04844/1.362, allocations: 17.93 MB / 0.8169 GB, free: 165 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01909/1.381, allocations: 7.496 MB / 0.8242 GB, free: 163 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.381, allocations: 0 / 0.8242 GB, free: 163 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01388/1.395, allocations: 5.079 MB / 0.8292 GB, free: 161.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/1.397, allocations: 266 kB / 0.8294 GB, free: 161.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07913/1.476, allocations: 33.78 MB / 0.8624 GB, free: 147 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/1.478, allocations: 1.803 MB / 0.8642 GB, free: 145.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00127/1.479, allocations: 268.4 kB / 0.8644 GB, free: 145.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/1.48, allocations: 1.221 MB / 0.8656 GB, free: 144.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.773e-06/1.48, allocations: 4 kB / 0.8656 GB, free: 144.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09702/1.577, allocations: 80.8 MB / 0.9445 GB, free: 68.36 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.577, allocations: 233.6 kB / 0.9447 GB, free: 68.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.658/6.235, allocations: 4.062 kB / 0.9447 GB, free: 68.11 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)