Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.001321/0.001321, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.367/1.367, allocations: 222.9 MB / 239 MB, free: 4.723 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.001376/0.001376, allocations: 184.4 kB / 289.2 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4668/0.4668, allocations: 78.53 MB / 417.9 MB, free: 3.332 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 79.88 kB / 497 MB, free: 6.586 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1356, allocations: 68.17 MB / 0.552 GB, free: 2.375 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2306/0.3663, allocations: 6.864 MB / 0.5587 GB, free: 36.53 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003694/0.37, allocations: 1.988 MB / 0.5606 GB, free: 35.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008031/0.3709, allocations: 9.781 kB / 0.5606 GB, free: 35.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006718/0.3715, allocations: 187 kB / 0.5608 GB, free: 35.97 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001729/0.3733, allocations: 0.6975 MB / 0.5615 GB, free: 35.82 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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.3744, allocations: 0.5878 MB / 0.562 GB, free: 35.74 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.3757, allocations: 1.578 MB / 0.5636 GB, free: 35.66 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003973/0.3762, allocations: 330.5 kB / 0.5639 GB, free: 35.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006415/0.3768, allocations: 0.6612 MB / 0.5645 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006673/0.3775, allocations: 0.8152 MB / 0.5653 GB, free: 35.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.3777, allocations: 121 kB / 0.5655 GB, free: 35.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.3781, allocations: 265.4 kB / 0.5657 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.3784, allocations: 331.6 kB / 0.566 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004344/0.3788, allocations: 0.6732 MB / 0.5667 GB, free: 34.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.38, allocations: 1.641 MB / 0.5683 GB, free: 34.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.38, allocations: 1.031 kB / 0.5683 GB, free: 34.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.38, allocations: 0 / 0.5683 GB, free: 34.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.38, allocations: 0 / 0.5683 GB, free: 34.54 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007944/0.388, allocations: 2.687 MB / 0.5709 GB, free: 33.56 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3881, allocations: 14.73 kB / 0.5709 GB, free: 33.56 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.3882, allocations: 129.2 kB / 0.5711 GB, free: 33.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004609/0.3928, allocations: 0.7681 MB / 0.5718 GB, free: 33.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.3942, allocations: 0.884 MB / 0.5727 GB, free: 33.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/0.3944, allocations: 255.8 kB / 0.5729 GB, free: 32.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3946, allocations: 87.36 kB / 0.573 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.3964, allocations: 1.092 MB / 0.5741 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3965, allocations: 0 / 0.5741 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.898e-05/0.3966, allocations: 31.81 kB / 0.5741 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3966, allocations: 17.94 kB / 0.5741 GB, free: 32.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.3983, allocations: 0.9873 MB / 0.5751 GB, free: 32.74 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.005556/0.4039, allocations: 3.831 MB / 0.5788 GB, free: 30.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006685/0.4106, allocations: 2.368 MB / 0.5811 GB, free: 29.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.412, allocations: 0.6799 MB / 0.5818 GB, free: 29.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.4121, allocations: 19.39 kB / 0.5818 GB, free: 29.55 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.4136, allocations: 0.8225 MB / 0.5826 GB, free: 29.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.895e-06/0.4136, allocations: 0 / 0.5826 GB, free: 29.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02785/0.4415, allocations: 7.082 MB / 0.5895 GB, free: 27.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.128e-05/0.4416, allocations: 117.9 kB / 0.5896 GB, free: 27.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.4434, allocations: 1.082 MB / 0.5907 GB, free: 27.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002335/0.4437, allocations: 46.33 kB / 0.5907 GB, free: 27.22 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003242/0.444, allocations: 489.6 kB / 0.5912 GB, free: 26.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/0.4443, allocations: 360.4 kB / 0.5916 GB, free: 26.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/0.4449, allocations: 290.8 kB / 0.5918 GB, free: 26.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.4449, allocations: 306.3 kB / 0.5921 GB, free: 26.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.4465, allocations: 0.7624 MB / 0.5929 GB, free: 25.84 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/0.4481, allocations: 0.9389 MB / 0.5938 GB, free: 25.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02286/0.471, allocations: 5.594 MB / 0.5992 GB, free: 23.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.471, allocations: 4.625 kB / 0.5992 GB, free: 23.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01322/0.4843, allocations: 4.335 MB / 0.6035 GB, free: 22.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.946e-05/0.4844, allocations: 58.81 kB / 0.6035 GB, free: 22.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.4844, allocations: 1.75 kB / 0.6035 GB, free: 22.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005241/0.4896, allocations: 1.513 MB / 0.605 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.4912, allocations: 296.6 kB / 0.6053 GB, free: 22.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01775/0.509, allocations: 8.274 MB / 0.6134 GB, free: 16.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.5112, allocations: 203.8 kB / 0.6136 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.5114, allocations: 59.97 kB / 0.6136 GB, free: 15.91 MB / 430.1 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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000614/0.512, allocations: 303.9 kB / 0.6139 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002255/0.5123, allocations: 130.3 kB / 0.614 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.5233, allocations: 3.869 MB / 0.6178 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.5234, allocations: 8.516 kB / 0.6178 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.5234, allocations: 9.188 kB / 0.6178 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/0.5235, allocations: 3.984 kB / 0.6178 GB, free: 11.55 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 postOpt removeSimpleEquations (simulation): time 0.01392/0.5374, allocations: 5.454 MB / 0.6232 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/0.5375, allocations: 4.031 kB / 0.6232 GB, free: 5.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006541/0.5381, allocations: 101.5 kB / 0.6233 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004914/0.5431, allocations: 1.616 MB / 0.6248 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000207/0.5433, allocations: 23.98 kB / 0.6249 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01945/0.5628, allocations: 9.612 MB / 0.6343 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5628, allocations: 0.625 kB / 0.6343 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/0.577, allocations: 4.733 MB / 0.6389 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004837/0.5776, allocations: 235.1 kB / 0.6391 GB, free: 5.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003862/0.578, allocations: 16 kB / 0.6391 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.5793, allocations: 107.9 kB / 0.6392 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006579/0.58, allocations: 200.8 kB / 0.6394 GB, free: 5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.5801, allocations: 29.17 kB / 0.6394 GB, free: 4.973 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.5813, allocations: 0.7313 MB / 0.6402 GB, free: 4.234 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5813, allocations: 0 / 0.6402 GB, free: 4.234 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001639/0.583, allocations: 471.5 kB / 0.6406 GB, free: 3.773 MB / 446.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01475/0.5977, allocations: 5.31 MB / 0.6458 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007242/0.605, allocations: 2.542 MB / 0.6483 GB, free: 11.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.6051, allocations: 0.75 kB / 0.6483 GB, free: 11.85 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004362/0.6094, allocations: 1.609 MB / 0.6498 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.6108, allocations: 114.3 kB / 0.65 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04086/0.6517, allocations: 17.17 MB / 0.6667 GB, free: 8.496 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008694/0.6526, allocations: 1.12 MB / 0.6678 GB, free: 7.348 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00069/0.6533, allocations: 120.4 kB / 0.6679 GB, free: 7.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.6541, allocations: 475.3 kB / 0.6684 GB, free: 6.766 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6541, allocations: 0 / 0.6684 GB, free: 6.766 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07882/0.733, allocations: 32.97 MB / 0.7006 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/0.7333, allocations: 238.2 kB / 0.7008 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.497/3.231, allocations: 0 / 0.7008 GB, free: 5.98 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)