Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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.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 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.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_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.0008691/0.0008691, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.396/1.396, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.001155/0.001156, allocations: 180.5 kB / 290.6 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5561/0.5561, allocations: 91.91 MB / 433.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004297, allocations: 12 kB / 0.5049 GB, free: 7.172 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4811/0.4815, allocations: 72.45 MB / 0.5756 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.017/0.4986, allocations: 22.42 MB / 0.5975 GB, free: 20.67 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01447/0.5131, allocations: 5.113 MB / 0.6025 GB, free: 16.96 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006008/0.5192, allocations: 55.28 kB / 0.6026 GB, free: 16.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00357/0.5228, allocations: 0.6686 MB / 0.6032 GB, free: 16.69 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.5342, allocations: 1.725 MB / 0.6049 GB, free: 15.47 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006311/0.5405, allocations: 1.901 MB / 0.6068 GB, free: 14.39 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01179/0.5523, allocations: 5.423 MB / 0.6121 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004107/0.5565, allocations: 1.13 MB / 0.6132 GB, free: 11.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005501/0.562, allocations: 2.057 MB / 0.6152 GB, free: 10.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005491/0.5675, allocations: 2.683 MB / 0.6178 GB, free: 8.801 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002438/0.57, allocations: 234.3 kB / 0.618 GB, free: 8.801 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004084/0.5741, allocations: 379.6 kB / 0.6184 GB, free: 8.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002642/0.5767, allocations: 0.9379 MB / 0.6193 GB, free: 8.164 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007646/0.5844, allocations: 2.383 MB / 0.6216 GB, free: 6.609 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.597, allocations: 5.842 MB / 0.6273 GB, free: 4.328 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.597, allocations: 7.938 kB / 0.6273 GB, free: 4.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5971, allocations: 4.906 kB / 0.6273 GB, free: 4.316 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003396/0.5974, allocations: 0 / 0.6273 GB, free: 4.316 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.03461/0.632, allocations: 8.396 MB / 0.6355 GB, free: 224 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.6321, allocations: 12.03 kB / 0.6356 GB, free: 212 kB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002301/0.6344, allocations: 484.8 kB / 0.636 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02866/0.6631, allocations: 4.048 MB / 0.64 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00708/0.6702, allocations: 2.654 MB / 0.6426 GB, free: 8.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.6714, allocations: 1.004 MB / 0.6435 GB, free: 7.785 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/0.6725, allocations: 344 kB / 0.6439 GB, free: 7.449 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.6836, allocations: 4.985 MB / 0.6487 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.096e-05/0.6837, allocations: 0 / 0.6487 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004228/0.6841, allocations: 144 kB / 0.6489 GB, free: 2.293 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.478e-05/0.6842, allocations: 84 kB / 0.649 GB, free: 2.211 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009902/0.6941, allocations: 4.502 MB / 0.6533 GB, free: 13.7 MB / 462.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.03857/0.7327, allocations: 18.8 MB / 0.6717 GB, free: 9.723 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01466/0.7474, allocations: 5.738 MB / 0.6773 GB, free: 3.902 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006961/0.7544, allocations: 3.044 MB / 0.6803 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000592/0.755, allocations: 66.91 kB / 0.6803 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008702/0.7637, allocations: 3.434 MB / 0.6837 GB, free: 13.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=382): time 1.072e-05/0.7638, allocations: 0 / 0.6837 GB, free: 13.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.3553/1.119, allocations: 82.05 MB / 0.7638 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/1.119, allocations: 141.8 kB / 0.764 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007977/1.127, allocations: 3.23 MB / 0.7671 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001649/1.129, allocations: 89.7 kB / 0.7672 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002248/1.131, allocations: 1.967 MB / 0.7691 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00302/1.134, allocations: 1.313 MB / 0.7704 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/1.136, allocations: 342.7 kB / 0.7707 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001265/1.136, allocations: 313 kB / 0.771 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00709/1.143, allocations: 2.839 MB / 0.7738 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3187/1.462, allocations: 3.462 MB / 0.7772 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08313/1.545, allocations: 20.64 MB / 0.7973 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.649e-05/1.545, allocations: 6.094 kB / 0.7973 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.06822/1.613, allocations: 20.72 MB / 0.8176 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.614, allocations: 67.41 kB / 0.8176 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.122e-05/1.614, allocations: 16 kB / 0.8177 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02994/1.644, allocations: 8.559 MB / 0.826 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003961/1.648, allocations: 0.664 MB / 0.8267 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09931/1.747, allocations: 35.29 MB / 0.8611 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007953/1.755, allocations: 0.7484 MB / 0.8619 GB, free: 109.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/1.756, allocations: 152 kB / 0.862 GB, free: 109.8 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * 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 (398): * Single equations (assignments): 395 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.003836/1.76, allocations: 0.6646 MB / 0.8626 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002011/1.762, allocations: 462.2 kB / 0.8631 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05979/1.822, allocations: 20.63 MB / 0.8832 GB, free: 87.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/1.822, allocations: 36 kB / 0.8833 GB, free: 87.92 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.693e-05/1.822, allocations: 31.94 kB / 0.8833 GB, free: 87.89 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001175/1.822, allocations: 23.92 kB / 0.8833 GB, free: 87.86 MB / 0.5606 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.06684/1.889, allocations: 25.62 MB / 0.9083 GB, free: 62.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.683e-05/1.889, allocations: 4 kB / 0.9084 GB, free: 62.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002447/1.892, allocations: 383.5 kB / 0.9087 GB, free: 61.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0275/1.919, allocations: 8.714 MB / 0.9172 GB, free: 53.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001291/1.921, allocations: 71.92 kB / 0.9173 GB, free: 53.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08258/2.003, allocations: 32.7 MB / 0.9492 GB, free: 20.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/2.003, allocations: 3.938 kB / 0.9492 GB, free: 20.03 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06946/2.073, allocations: 24.26 MB / 0.9729 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/2.075, allocations: 0.5611 MB / 0.9735 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/2.076, allocations: 64 kB / 0.9735 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004765/2.081, allocations: 0.5034 MB / 0.974 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003186/2.084, allocations: 0.7724 MB / 0.9748 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000317/2.084, allocations: 91.98 kB / 0.9749 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003307/2.088, allocations: 2.113 MB / 0.9769 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.51e-07/2.088, allocations: 3.938 kB / 0.9769 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0063/2.094, allocations: 1.794 MB / 0.9787 GB, free: 5.758 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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 {(100,36,5.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.4006/2.495, allocations: 24.92 MB / 1.003 GB, free: 172.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.03413/2.529, allocations: 10.27 MB / 1.013 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/2.529, allocations: 0 / 1.013 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.02489/2.554, allocations: 7.077 MB / 1.02 GB, free: 169.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004966/2.559, allocations: 379.2 kB / 1.02 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.199/2.758, allocations: 77.29 MB / 1.096 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001817/2.76, allocations: 2.443 MB / 1.098 GB, free: 118.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002015/2.762, allocations: 375.3 kB / 1.099 GB, free: 118.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002203/2.764, allocations: 2.005 MB / 1.1 GB, free: 116.2 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/2.764, allocations: 0 / 1.1 GB, free: 116.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1764/2.941, allocations: 117.7 MB / 1.215 GB, free: 416 kB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/2.941, allocations: 235.2 kB / 1.216 GB, free: 152 kB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.165/9.106, allocations: 0 / 1.216 GB, free: 152 kB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)