Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.0008168/0.0008166, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.357/1.357, allocations: 223.2 MB / 239 MB, free: 5.52 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.001155, allocations: 160.6 kB / 290.3 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4432/0.4432, allocations: 79.48 MB / 420.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003339, allocations: 12 kB / 0.4892 GB, free: 5.492 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3448, allocations: 69.51 MB / 0.5571 GB, free: 37.32 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005061/0.35, allocations: 6.015 MB / 0.563 GB, free: 36.92 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003532/0.3535, allocations: 1.915 MB / 0.5648 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000617/0.3542, allocations: 9.406 kB / 0.5648 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005429/0.3547, allocations: 169 kB / 0.565 GB, free: 36.42 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.3563, allocations: 0.6689 MB / 0.5657 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.3574, allocations: 0.5178 MB / 0.5662 GB, free: 36.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.3588, allocations: 1.408 MB / 0.5675 GB, free: 35.74 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004085/0.3592, allocations: 265.3 kB / 0.5678 GB, free: 35.69 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006784/0.3599, allocations: 0.5568 MB / 0.5683 GB, free: 35.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007005/0.3606, allocations: 0.7233 MB / 0.569 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3607, allocations: 61.66 kB / 0.5691 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004309/0.3612, allocations: 187 kB / 0.5693 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.3614, allocations: 255.5 kB / 0.5695 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.3616, allocations: 230.2 kB / 0.5697 GB, free: 35.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008688/0.3624, allocations: 1.228 MB / 0.5709 GB, free: 34.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3625, allocations: 0 / 0.5709 GB, free: 34.97 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3625, allocations: 0.75 kB / 0.5709 GB, free: 34.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.3625, allocations: 0.8438 kB / 0.5709 GB, free: 34.97 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.006948/0.3694, allocations: 2.502 MB / 0.5734 GB, free: 34.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3695, allocations: 11.56 kB / 0.5734 GB, free: 34.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002746/0.3698, allocations: 124.3 kB / 0.5735 GB, free: 34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004518/0.3743, allocations: 0.7822 MB / 0.5743 GB, free: 33.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3757, allocations: 0.8429 MB / 0.5751 GB, free: 33.36 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.376, allocations: 272.2 kB / 0.5754 GB, free: 33.13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3761, allocations: 84.59 kB / 0.5754 GB, free: 33.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.3781, allocations: 1.142 MB / 0.5766 GB, free: 32.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.3781, allocations: 4.516 kB / 0.5766 GB, free: 32.69 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-05/0.3782, allocations: 33.19 kB / 0.5766 GB, free: 32.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3782, allocations: 22.33 kB / 0.5766 GB, free: 32.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/0.3799, allocations: 1.043 MB / 0.5776 GB, free: 32.32 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.005717/0.3856, allocations: 3.933 MB / 0.5815 GB, free: 30.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006471/0.3921, allocations: 2.91 MB / 0.5843 GB, free: 29.22 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.3935, allocations: 0.7365 MB / 0.585 GB, free: 28.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.3936, allocations: 22.08 kB / 0.5851 GB, free: 28.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001507/0.3951, allocations: 0.8776 MB / 0.5859 GB, free: 28.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.875e-06/0.3951, allocations: 0 / 0.5859 GB, free: 28.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02684/0.422, allocations: 8.635 MB / 0.5943 GB, free: 27.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.4221, allocations: 118.2 kB / 0.5945 GB, free: 26.92 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.4238, allocations: 1.072 MB / 0.5955 GB, free: 26.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.424, allocations: 46.47 kB / 0.5955 GB, free: 26.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.4243, allocations: 489.8 kB / 0.596 GB, free: 26.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.4247, allocations: 361.8 kB / 0.5964 GB, free: 25.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.386e-05/0.4248, allocations: 29.84 kB / 0.5964 GB, free: 25.74 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.4249, allocations: 370.9 kB / 0.5967 GB, free: 25.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/0.4264, allocations: 0.8164 MB / 0.5975 GB, free: 25.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.4281, allocations: 0.995 MB / 0.5985 GB, free: 24.67 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.4297, allocations: 0.9512 MB / 0.5994 GB, free: 24.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.4297, allocations: 4 kB / 0.5994 GB, free: 24.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01379/0.4435, allocations: 5.158 MB / 0.6045 GB, free: 22.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.033e-05/0.4436, allocations: 59.77 kB / 0.6045 GB, free: 22.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.4436, allocations: 3.812 kB / 0.6045 GB, free: 22.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006457/0.4501, allocations: 1.897 MB / 0.6064 GB, free: 22.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.4518, allocations: 298.3 kB / 0.6067 GB, free: 22.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01927/0.4711, allocations: 9.017 MB / 0.6155 GB, free: 16.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.4729, allocations: 236.2 kB / 0.6157 GB, free: 16.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.473, allocations: 56.14 kB / 0.6158 GB, free: 16.28 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 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.0005533/0.4736, allocations: 313.1 kB / 0.6161 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.4737, allocations: 126.4 kB / 0.6162 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/0.4845, allocations: 4.706 MB / 0.6208 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.4845, allocations: 8 kB / 0.6208 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.4846, allocations: 15.95 kB / 0.6208 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.4846, allocations: 3.984 kB / 0.6208 GB, free: 11.08 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.01265/0.4972, allocations: 6.301 MB / 0.627 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.4973, allocations: 0 / 0.627 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/0.4978, allocations: 103.9 kB / 0.6271 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004825/0.5027, allocations: 1.866 MB / 0.6289 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.5028, allocations: 25.06 kB / 0.6289 GB, free: 2.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0174/0.5202, allocations: 9.672 MB / 0.6383 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5203, allocations: 0 / 0.6383 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/0.5339, allocations: 5.639 MB / 0.6439 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004647/0.5344, allocations: 231.2 kB / 0.6441 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003041/0.5347, allocations: 16 kB / 0.6441 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.5359, allocations: 148.9 kB / 0.6442 GB, free: 2.641 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005627/0.5365, allocations: 197.4 kB / 0.6444 GB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.463e-05/0.5366, allocations: 28 kB / 0.6444 GB, free: 2.418 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.5377, allocations: 0.7157 MB / 0.6451 GB, free: 1.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5377, allocations: 0 / 0.6451 GB, free: 1.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001618/0.5393, allocations: 475.6 kB / 0.6456 GB, free: 1.23 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 (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 {(19,24.4%) 13} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01387/0.5532, allocations: 6.223 MB / 0.6517 GB, free: 10.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006182/0.5594, allocations: 2.784 MB / 0.6544 GB, free: 8.148 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5594, allocations: 0 / 0.6544 GB, free: 8.148 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004061/0.5635, allocations: 1.804 MB / 0.6562 GB, free: 6.305 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.5647, allocations: 115.5 kB / 0.6563 GB, free: 6.191 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.5895, allocations: 12.02 MB / 0.668 GB, free: 9.855 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.5903, allocations: 1.124 MB / 0.6691 GB, free: 8.703 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005475/0.5909, allocations: 120.7 kB / 0.6692 GB, free: 8.586 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/0.5915, allocations: 463.3 kB / 0.6697 GB, free: 8.133 MB / 478.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5916, allocations: 0 / 0.6697 GB, free: 8.133 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07022/0.6618, allocations: 31.99 MB / 0.7009 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003015/0.6621, allocations: 251.5 kB / 0.7011 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.536/3.198, allocations: 64 / 0.7011 GB, free: 8.309 MB / 0.4981 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: