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.001085/0.001085, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.298/1.298, allocations: 222.9 MB / 238.8 MB, free: 4.766 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.001278/0.001278, allocations: 188.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4462/0.4462, allocations: 78.52 MB / 417.8 MB, free: 3.305 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 75.88 kB / 496.9 MB, free: 6.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1213, allocations: 68.18 MB / 0.5518 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2512/0.3726, allocations: 6.854 MB / 0.5585 GB, free: 36.03 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.3766, allocations: 2.005 MB / 0.5604 GB, free: 35.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.3776, allocations: 11.78 kB / 0.5605 GB, free: 35.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007315/0.3784, allocations: 185.8 kB / 0.5606 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001799/0.3802, allocations: 0.7054 MB / 0.5613 GB, free: 35.32 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.001159/0.3814, allocations: 0.5907 MB / 0.5619 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.3828, allocations: 1.493 MB / 0.5634 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003899/0.3832, allocations: 295 kB / 0.5636 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006825/0.3839, allocations: 0.594 MB / 0.5642 GB, free: 34.97 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006382/0.3845, allocations: 0.7838 MB / 0.565 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.3847, allocations: 72.12 kB / 0.5651 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.3851, allocations: 209.2 kB / 0.5653 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.3854, allocations: 283.1 kB / 0.5655 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.3858, allocations: 0.6209 MB / 0.5661 GB, free: 34.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.3869, allocations: 1.593 MB / 0.5677 GB, free: 34.06 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3869, allocations: 0 / 0.5677 GB, free: 34.06 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.387, allocations: 0 / 0.5677 GB, free: 34.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.387, allocations: 3.844 kB / 0.5677 GB, free: 34.06 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.008223/0.3952, allocations: 2.675 MB / 0.5703 GB, free: 33.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3953, allocations: 15.81 kB / 0.5703 GB, free: 33.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001361/0.3954, allocations: 126 kB / 0.5704 GB, free: 33.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00468/0.4001, allocations: 0.7761 MB / 0.5712 GB, free: 32.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.4016, allocations: 0.8836 MB / 0.5721 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.4018, allocations: 260.4 kB / 0.5723 GB, free: 32.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.402, allocations: 83.91 kB / 0.5724 GB, free: 32.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.4039, allocations: 1.097 MB / 0.5735 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.4039, allocations: 0 / 0.5735 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.511e-05/0.404, allocations: 29.91 kB / 0.5735 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.404, allocations: 18.91 kB / 0.5735 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.4058, allocations: 0.9854 MB / 0.5745 GB, free: 32.25 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.006175/0.412, allocations: 3.824 MB / 0.5782 GB, free: 30.76 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006918/0.4189, allocations: 2.376 MB / 0.5805 GB, free: 29.94 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.4205, allocations: 0.6743 MB / 0.5812 GB, free: 29.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.4207, allocations: 22.34 kB / 0.5812 GB, free: 29.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001868/0.4226, allocations: 0.822 MB / 0.582 GB, free: 29.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 7.304e-06/0.4226, allocations: 6.25 kB / 0.582 GB, free: 29.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03108/0.4537, allocations: 7.072 MB / 0.5889 GB, free: 27.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.4538, allocations: 122.3 kB / 0.589 GB, free: 27.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.4567, allocations: 1.081 MB / 0.5901 GB, free: 27.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003243/0.457, allocations: 46.75 kB / 0.5901 GB, free: 27.33 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.4576, allocations: 493.8 kB / 0.5906 GB, free: 26.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006556/0.4582, allocations: 360.6 kB / 0.5909 GB, free: 26.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.4593, allocations: 290.5 kB / 0.5912 GB, free: 26.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.678e-05/0.4594, allocations: 307 kB / 0.5915 GB, free: 26.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.4614, allocations: 0.761 MB / 0.5923 GB, free: 25.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.4635, allocations: 0.9336 MB / 0.5932 GB, free: 25.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02686/0.4904, allocations: 5.578 MB / 0.5986 GB, free: 23.78 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/0.4905, allocations: 1.031 kB / 0.5986 GB, free: 23.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01649/0.507, allocations: 4.341 MB / 0.6029 GB, free: 22.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.508e-05/0.5071, allocations: 59.7 kB / 0.6029 GB, free: 22.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.5072, allocations: 3.469 kB / 0.6029 GB, free: 22.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/0.5128, allocations: 1.504 MB / 0.6044 GB, free: 22.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.5145, allocations: 297.1 kB / 0.6047 GB, free: 22.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/0.5324, allocations: 7.617 MB / 0.6121 GB, free: 17.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/0.5348, allocations: 206.8 kB / 0.6123 GB, free: 17.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003945/0.5352, allocations: 60.78 kB / 0.6124 GB, free: 17.03 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.001044/0.5363, allocations: 310.4 kB / 0.6127 GB, free: 16.72 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004742/0.5368, allocations: 122.5 kB / 0.6128 GB, free: 16.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/0.5485, allocations: 3.873 MB / 0.6166 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.5486, allocations: 8.625 kB / 0.6166 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.759e-05/0.5486, allocations: 12.92 kB / 0.6166 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.841e-05/0.5486, allocations: 3.984 kB / 0.6166 GB, free: 12.67 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.01387/0.5625, allocations: 5.45 MB / 0.6219 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.5626, allocations: 1.188 kB / 0.6219 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006536/0.5632, allocations: 103.8 kB / 0.622 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004956/0.5682, allocations: 1.616 MB / 0.6236 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002131/0.5685, allocations: 24 kB / 0.6236 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/0.5864, allocations: 8.754 MB / 0.6322 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5865, allocations: 0 / 0.6322 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/0.6009, allocations: 4.733 MB / 0.6368 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005697/0.6015, allocations: 227.2 kB / 0.637 GB, free: 7.324 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004584/0.602, allocations: 24.27 kB / 0.637 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.6034, allocations: 107.9 kB / 0.6371 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007228/0.6041, allocations: 188.7 kB / 0.6373 GB, free: 7.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.6043, allocations: 31.98 kB / 0.6373 GB, free: 6.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001432/0.6058, allocations: 0.7196 MB / 0.638 GB, free: 6.254 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6058, allocations: 4 kB / 0.638 GB, free: 6.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001943/0.6077, allocations: 475.4 kB / 0.6385 GB, free: 5.785 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.0148/0.6225, allocations: 5.324 MB / 0.6437 GB, free: 424 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006717/0.6293, allocations: 2.503 MB / 0.6461 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.6294, allocations: 4 kB / 0.6461 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004425/0.6338, allocations: 1.606 MB / 0.6477 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001521/0.6353, allocations: 113.1 kB / 0.6478 GB, free: 12.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04201/0.6774, allocations: 17.15 MB / 0.6646 GB, free: 10.55 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008396/0.6783, allocations: 1.132 MB / 0.6657 GB, free: 9.395 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006776/0.6789, allocations: 112.1 kB / 0.6658 GB, free: 9.285 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007802/0.6797, allocations: 467.3 kB / 0.6662 GB, free: 8.828 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6798, allocations: 4 kB / 0.6662 GB, free: 8.824 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05451/0.7343, allocations: 31.67 MB / 0.6971 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.7345, allocations: 239.8 kB / 0.6974 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.647/3.382, allocations: 3.938 kB / 0.6974 GB, free: 9.297 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)