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.00126/0.00126, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001828/0.001828, allocations: 184.5 kB / 289.5 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5242/0.5242, allocations: 91.91 MB / 431.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001744, allocations: 79.88 kB / 0.502 GB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3976, allocations: 71.26 MB / 0.5716 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006107/0.4038, allocations: 6.582 MB / 0.578 GB, free: 32.93 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003821/0.4076, allocations: 1.969 MB / 0.5799 GB, free: 31.54 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008935/0.4085, allocations: 8.781 kB / 0.5799 GB, free: 31.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000742/0.4093, allocations: 237.3 kB / 0.5802 GB, free: 31.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00196/0.4113, allocations: 0.8021 MB / 0.5809 GB, free: 30.89 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.4125, allocations: 0.6326 MB / 0.5816 GB, free: 30.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.4141, allocations: 1.576 MB / 0.5831 GB, free: 29.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004628/0.4146, allocations: 325.2 kB / 0.5834 GB, free: 29.67 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007759/0.4154, allocations: 0.653 MB / 0.584 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007239/0.4161, allocations: 0.8204 MB / 0.5848 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.4163, allocations: 121.6 kB / 0.585 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005051/0.4168, allocations: 256.1 kB / 0.5852 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.417, allocations: 330.4 kB / 0.5855 GB, free: 28.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004565/0.4175, allocations: 0.6687 MB / 0.5862 GB, free: 28.24 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.4189, allocations: 1.638 MB / 0.5878 GB, free: 27.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4189, allocations: 0 / 0.5878 GB, free: 27.5 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.4189, allocations: 0 / 0.5878 GB, free: 27.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.419, allocations: 7.359 kB / 0.5878 GB, free: 27.5 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.008991/0.428, allocations: 2.681 MB / 0.5904 GB, free: 26.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.428, allocations: 8.844 kB / 0.5904 GB, free: 26.23 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.4282, allocations: 128 kB / 0.5905 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004951/0.4332, allocations: 0.7791 MB / 0.5913 GB, free: 25.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.4348, allocations: 0.8805 MB / 0.5922 GB, free: 25.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.4351, allocations: 260.4 kB / 0.5924 GB, free: 25.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.4352, allocations: 86.69 kB / 0.5925 GB, free: 25.13 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.4373, allocations: 1.087 MB / 0.5935 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4373, allocations: 1.344 kB / 0.5935 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.132e-05/0.4374, allocations: 29.62 kB / 0.5936 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.4374, allocations: 19.56 kB / 0.5936 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.4395, allocations: 0.9842 MB / 0.5946 GB, free: 24.36 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.007242/0.4467, allocations: 3.852 MB / 0.5983 GB, free: 22.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007589/0.4543, allocations: 2.371 MB / 0.6006 GB, free: 21.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.456, allocations: 0.6819 MB / 0.6013 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.4561, allocations: 16.92 kB / 0.6013 GB, free: 21.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001744/0.4579, allocations: 0.8201 MB / 0.6021 GB, free: 20.72 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.538e-06/0.4579, allocations: 0.9375 kB / 0.6021 GB, free: 20.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03029/0.4882, allocations: 7.085 MB / 0.609 GB, free: 19.33 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.4883, allocations: 117.8 kB / 0.6091 GB, free: 19.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.4902, allocations: 1.082 MB / 0.6102 GB, free: 18.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/0.4905, allocations: 46.7 kB / 0.6102 GB, free: 18.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/0.4908, allocations: 494.1 kB / 0.6107 GB, free: 18.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/0.4912, allocations: 357.6 kB / 0.6111 GB, free: 18.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005655/0.4918, allocations: 290.5 kB / 0.6113 GB, free: 17.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.4919, allocations: 301.9 kB / 0.6116 GB, free: 17.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.4935, allocations: 0.7674 MB / 0.6124 GB, free: 17.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.4952, allocations: 0.9412 MB / 0.6133 GB, free: 16.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02299/0.5182, allocations: 5.585 MB / 0.6187 GB, free: 13.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/0.5183, allocations: 4 kB / 0.6187 GB, free: 13.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01225/0.5305, allocations: 4.332 MB / 0.623 GB, free: 9.332 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.102e-05/0.5306, allocations: 55.41 kB / 0.623 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.5307, allocations: 4 kB / 0.623 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004933/0.5356, allocations: 1.52 MB / 0.6245 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.5372, allocations: 299.5 kB / 0.6248 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/0.5546, allocations: 8.276 MB / 0.6329 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00219/0.5568, allocations: 202.8 kB / 0.6331 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.557, allocations: 55.97 kB / 0.6331 GB, free: 14.75 MB / 446.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.0007143/0.5577, allocations: 303.8 kB / 0.6334 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.5579, allocations: 130.3 kB / 0.6335 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01314/0.5711, allocations: 3.869 MB / 0.6373 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/0.5712, allocations: 8 kB / 0.6373 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.5712, allocations: 8 kB / 0.6373 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.872e-05/0.5712, allocations: 7.922 kB / 0.6374 GB, free: 10.39 MB / 446.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.01559/0.5868, allocations: 5.473 MB / 0.6427 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.5869, allocations: 0 / 0.6427 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.5876, allocations: 99.84 kB / 0.6428 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005811/0.5934, allocations: 1.598 MB / 0.6444 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.5937, allocations: 20 kB / 0.6444 GB, free: 3.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/0.6156, allocations: 9.64 MB / 0.6538 GB, free: 9.156 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.6156, allocations: 0 / 0.6538 GB, free: 9.156 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0156/0.6312, allocations: 4.736 MB / 0.6584 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006656/0.6319, allocations: 223.3 kB / 0.6586 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004946/0.6324, allocations: 19.98 kB / 0.6586 GB, free: 4.133 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.634, allocations: 107.9 kB / 0.6587 GB, free: 4.027 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007465/0.6348, allocations: 196.7 kB / 0.6589 GB, free: 3.832 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.6349, allocations: 24 kB / 0.659 GB, free: 3.809 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.6363, allocations: 0.7312 MB / 0.6597 GB, free: 3.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6364, allocations: 4 kB / 0.6597 GB, free: 3.066 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002001/0.6384, allocations: 471.5 kB / 0.6601 GB, free: 2.605 MB / 462.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 {(19,13,24.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.0155/0.6539, allocations: 5.322 MB / 0.6653 GB, free: 13.24 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007552/0.6615, allocations: 2.536 MB / 0.6678 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.6615, allocations: 0 / 0.6678 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00471/0.6662, allocations: 1.594 MB / 0.6694 GB, free: 9.031 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.668, allocations: 121.1 kB / 0.6695 GB, free: 8.914 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04514/0.7132, allocations: 16.76 MB / 0.6858 GB, free: 7.695 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.7144, allocations: 1.124 MB / 0.6869 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007928/0.7152, allocations: 112.1 kB / 0.687 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009373/0.7161, allocations: 471.3 kB / 0.6875 GB, free: 5.973 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7162, allocations: 4 kB / 0.6875 GB, free: 5.969 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07924/0.7954, allocations: 33.8 MB / 0.7205 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.3, allocations: 8.047 kB / 0.7205 GB, free: 4.379 MB / 0.5137 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 & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)