Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.009548/0.009548, allocations: 171.2 kB / 15.12 MB, free: 5.559 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.444/1.444, allocations: 223.2 MB / 239 MB, free: 1.723 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008663/0.0008663, allocations: 94.58 kB / 290.2 MB, free: 13.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4548/0.4548, allocations: 78.59 MB / 419.9 MB, free: 44.19 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004438, allocations: 16 kB / 499.9 MB, free: 2.809 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3832, allocations: 69.34 MB / 0.5558 GB, free: 38.92 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006317/0.3896, allocations: 5.729 MB / 0.5614 GB, free: 37.8 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.004504/0.3942, allocations: 1.945 MB / 0.5633 GB, free: 36.43 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009655/0.3952, allocations: 10.66 kB / 0.5634 GB, free: 36.43 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007068/0.3959, allocations: 172.9 kB / 0.5635 GB, free: 36.35 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002081/0.398, allocations: 0.7282 MB / 0.5642 GB, free: 35.87 MB / 426.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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.3993, allocations: 0.516 MB / 0.5647 GB, free: 35.62 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.4012, allocations: 0.9953 MB / 0.5657 GB, free: 35.08 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005276/0.4018, allocations: 264.4 kB / 0.566 GB, free: 34.96 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009744/0.4028, allocations: 0.5644 MB / 0.5665 GB, free: 34.71 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000789/0.4036, allocations: 0.7124 MB / 0.5672 GB, free: 34.4 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.4037, allocations: 59.41 kB / 0.5673 GB, free: 34.4 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000533/0.4043, allocations: 171 kB / 0.5674 GB, free: 34.37 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002877/0.4046, allocations: 251.7 kB / 0.5677 GB, free: 34.23 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002714/0.4048, allocations: 230.5 kB / 0.5679 GB, free: 34.08 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.4059, allocations: 1.184 MB / 0.569 GB, free: 33.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4059, allocations: 0 / 0.569 GB, free: 33.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.4059, allocations: 2.875 kB / 0.569 GB, free: 33.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.2e-05/0.406, allocations: 3.938 kB / 0.569 GB, free: 33.73 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008158/0.4141, allocations: 2.507 MB / 0.5715 GB, free: 32.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.4142, allocations: 8.062 kB / 0.5715 GB, free: 32.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002526/0.4145, allocations: 131.9 kB / 0.5716 GB, free: 32.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004717/0.4192, allocations: 0.7842 MB / 0.5724 GB, free: 32.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.4209, allocations: 0.8387 MB / 0.5732 GB, free: 31.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.4211, allocations: 276.8 kB / 0.5735 GB, free: 31.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.4213, allocations: 82.59 kB / 0.5736 GB, free: 31.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.4234, allocations: 1.137 MB / 0.5747 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.4234, allocations: 0 / 0.5747 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.608e-05/0.4235, allocations: 29.81 kB / 0.5747 GB, free: 31.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4235, allocations: 21.7 kB / 0.5747 GB, free: 31.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.4255, allocations: 1.047 MB / 0.5757 GB, free: 30.76 MB / 426.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.006259/0.4318, allocations: 4.099 MB / 0.5797 GB, free: 28.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007455/0.4392, allocations: 2.916 MB / 0.5826 GB, free: 27.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.4395, allocations: 17.61 kB / 0.5826 GB, free: 27.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001702/0.4412, allocations: 0.8757 MB / 0.5835 GB, free: 27.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.707e-06/0.4412, allocations: 0 / 0.5835 GB, free: 27.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02929/0.4705, allocations: 8.632 MB / 0.5919 GB, free: 25.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.4706, allocations: 121.3 kB / 0.592 GB, free: 25.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.4721, allocations: 1.072 MB / 0.5931 GB, free: 24.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002374/0.4724, allocations: 46.11 kB / 0.5931 GB, free: 24.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.4727, allocations: 493 kB / 0.5936 GB, free: 24.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.4731, allocations: 355 kB / 0.5939 GB, free: 24.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.15e-05/0.4732, allocations: 30.41 kB / 0.5939 GB, free: 24.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.4733, allocations: 366.5 kB / 0.5943 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.4749, allocations: 0.8154 MB / 0.5951 GB, free: 23.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.4767, allocations: 0.9901 MB / 0.596 GB, free: 23.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.4785, allocations: 0.9624 MB / 0.597 GB, free: 22.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.4786, allocations: 1.844 kB / 0.597 GB, free: 22.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01603/0.4946, allocations: 5.155 MB / 0.602 GB, free: 21.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.439e-05/0.4947, allocations: 63.3 kB / 0.6021 GB, free: 21.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.4947, allocations: 3.875 kB / 0.6021 GB, free: 21.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007171/0.5019, allocations: 1.897 MB / 0.6039 GB, free: 21.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.5036, allocations: 302.4 kB / 0.6042 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02119/0.5248, allocations: 9.445 MB / 0.6135 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/0.5269, allocations: 242.7 kB / 0.6137 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.5271, allocations: 59.95 kB / 0.6137 GB, free: 14.43 MB / 426.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005519/0.5276, allocations: 310.6 kB / 0.614 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.5278, allocations: 130.4 kB / 0.6142 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.5404, allocations: 4.701 MB / 0.6188 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/0.5405, allocations: 12 kB / 0.6188 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.5405, allocations: 8 kB / 0.6188 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-05/0.5405, allocations: 7.938 kB / 0.6188 GB, free: 9.234 MB / 426.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 postOpt removeSimpleEquations (simulation): time 0.0144/0.5549, allocations: 6.348 MB / 0.625 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.555, allocations: 3.938 kB / 0.625 GB, free: 2.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000576/0.5556, allocations: 103.9 kB / 0.6251 GB, free: 2.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005335/0.5609, allocations: 1.891 MB / 0.6269 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.5611, allocations: 16 kB / 0.6269 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02075/0.5818, allocations: 10.1 MB / 0.6368 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5819, allocations: 3.953 kB / 0.6368 GB, free: 6.359 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01576/0.5976, allocations: 5.638 MB / 0.6423 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000717/0.5984, allocations: 235.2 kB / 0.6425 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.5986, allocations: 23.92 kB / 0.6426 GB, free: 416 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.5998, allocations: 143.9 kB / 0.6427 GB, free: 272 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005879/0.6004, allocations: 200.7 kB / 0.6429 GB, free: 72 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.947e-05/0.6005, allocations: 27.98 kB / 0.6429 GB, free: 44 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001131/0.6016, allocations: 0.7236 MB / 0.6436 GB, free: 15.31 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6017, allocations: 0 / 0.6436 GB, free: 15.31 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001458/0.6031, allocations: 471.5 kB / 0.6441 GB, free: 14.85 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01598/0.6191, allocations: 6.295 MB / 0.6502 GB, free: 8.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006841/0.626, allocations: 2.78 MB / 0.6529 GB, free: 5.691 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.6261, allocations: 0.75 kB / 0.6529 GB, free: 5.691 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004682/0.6307, allocations: 1.822 MB / 0.6547 GB, free: 3.832 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009663/0.6317, allocations: 98.14 kB / 0.6548 GB, free: 3.734 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006168/0.6379, allocations: 5.03 MB / 0.6597 GB, free: 14.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008395/0.6388, allocations: 1.147 MB / 0.6608 GB, free: 13.43 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005544/0.6394, allocations: 116.1 kB / 0.661 GB, free: 13.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006035/0.64, allocations: 471.3 kB / 0.6614 GB, free: 12.85 MB / 474.7 MB Notification: Performance of SimCode: time 9.22e-07/0.64, allocations: 0 / 0.6614 GB, free: 12.85 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05227/0.6923, allocations: 31.15 MB / 0.6918 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.6926, allocations: 234.8 kB / 0.6921 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.083/3.776, allocations: 0 / 0.6921 GB, free: 13.68 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)