Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_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.005325/0.005325, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.307/1.307, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001305/0.001305, allocations: 188.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5258/0.5258, allocations: 91.9 MB / 431.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 84.45 kB / 0.5724 GB, free: 33.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1224, allocations: 71.29 MB / 0.642 GB, free: 3.965 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01979/0.1422, allocations: 21.97 MB / 0.6634 GB, free: 13.91 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.1534, allocations: 4.908 MB / 0.6682 GB, free: 8.977 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003795/0.1572, allocations: 47.94 kB / 0.6683 GB, free: 8.93 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002964/0.1602, allocations: 0.8828 MB / 0.6691 GB, free: 8.039 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008057/0.1683, allocations: 2.303 MB / 0.6714 GB, free: 5.723 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005814/0.1742, allocations: 2.078 MB / 0.6734 GB, free: 3.676 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008525/0.1827, allocations: 5.806 MB / 0.6791 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.1854, allocations: 1.325 MB / 0.6804 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003784/0.1892, allocations: 2.357 MB / 0.6827 GB, free: 10.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004155/0.1934, allocations: 2.982 MB / 0.6856 GB, free: 7.105 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001635/0.195, allocations: 448 kB / 0.686 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00221/0.1972, allocations: 0.5859 MB / 0.6866 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001694/0.1989, allocations: 1.167 MB / 0.6877 GB, free: 4.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00438/0.2033, allocations: 2.641 MB / 0.6903 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.2142, allocations: 6.312 MB / 0.6965 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2142, allocations: 0 / 0.6965 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2142, allocations: 0 / 0.6965 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002479/0.2145, allocations: 4 kB / 0.6965 GB, free: 11.91 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.04028/0.2548, allocations: 9.412 MB / 0.7057 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.469e-05/0.2549, allocations: 8.031 kB / 0.7057 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001192/0.2561, allocations: 496.8 kB / 0.7062 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05147/0.3076, allocations: 4.039 MB / 0.7101 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008677/0.3163, allocations: 2.713 MB / 0.7128 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001521/0.3179, allocations: 0.9651 MB / 0.7137 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001422/0.3193, allocations: 352 kB / 0.714 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.3367, allocations: 4.751 MB / 0.7187 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.415e-05/0.3368, allocations: 7.938 kB / 0.7187 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006871/0.3375, allocations: 140 kB / 0.7188 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.35e-05/0.3376, allocations: 84 kB / 0.7189 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.3536, allocations: 4.259 MB / 0.7231 GB, free: 348 kB / 0.5137 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 preOpt removeSimpleEquations (simulation): time 0.05781/0.4114, allocations: 18.33 MB / 0.741 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0179/0.4294, allocations: 5.037 MB / 0.7459 GB, free: 7.707 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00596/0.4354, allocations: 2.794 MB / 0.7486 GB, free: 4.902 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004673/0.4358, allocations: 70.92 kB / 0.7487 GB, free: 4.832 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006562/0.4424, allocations: 3.197 MB / 0.7518 GB, free: 1.594 MB / 0.545 GB Notification: Performance of pre-optimization done (n=385): time 7.955e-06/0.4424, allocations: 7.922 kB / 0.7518 GB, free: 1.586 MB / 0.545 GB Notification: Performance of matching and sorting (n=385): time 0.5628/1.005, allocations: 66.83 MB / 0.8171 GB, free: 82.99 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/1.005, allocations: 145.8 kB / 0.8172 GB, free: 82.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003744/1.009, allocations: 3.276 MB / 0.8204 GB, free: 80.43 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007897/1.01, allocations: 88.52 kB / 0.8205 GB, free: 80.38 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009662/1.011, allocations: 2.01 MB / 0.8225 GB, free: 79.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.012, allocations: 1.387 MB / 0.8238 GB, free: 77.99 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/1.013, allocations: 0.6903 MB / 0.8245 GB, free: 77.29 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.28e-05/1.013, allocations: 305.1 kB / 0.8248 GB, free: 76.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004707/1.018, allocations: 2.616 MB / 0.8273 GB, free: 74.36 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004974/1.023, allocations: 3.253 MB / 0.8305 GB, free: 70.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06286/1.086, allocations: 19.12 MB / 0.8492 GB, free: 51.51 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.751e-05/1.086, allocations: 4 kB / 0.8492 GB, free: 51.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.04883/1.135, allocations: 17.27 MB / 0.866 GB, free: 34.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.993e-05/1.135, allocations: 68.03 kB / 0.8661 GB, free: 34.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/1.135, allocations: 15.94 kB / 0.8661 GB, free: 34.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02309/1.158, allocations: 7.296 MB / 0.8732 GB, free: 26.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/1.161, allocations: 0.6787 MB / 0.8739 GB, free: 26.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07759/1.239, allocations: 33.89 MB / 0.907 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005768/1.245, allocations: 0.635 MB / 0.9076 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006776/1.245, allocations: 160 kB / 0.9078 GB, free: 7.41 MB / 0.5762 GB Warning: Assuming fixed start value for the following 4 variables: order6.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 (409): * Single equations (assignments): 406 * 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,46)} Notification: Performance of prepare postOptimizeDAE: time 0.001819/1.247, allocations: 0.6674 MB / 0.9084 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009617/1.248, allocations: 480.9 kB / 0.9089 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05395/1.302, allocations: 16.9 MB / 0.9254 GB, free: 5.297 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.482e-05/1.302, allocations: 36 kB / 0.9254 GB, free: 5.262 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.537e-05/1.302, allocations: 32 kB / 0.9255 GB, free: 5.23 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.941e-05/1.302, allocations: 15.94 kB / 0.9255 GB, free: 5.215 MB / 0.5919 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.06128/1.364, allocations: 21.92 MB / 0.9469 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.356e-05/1.364, allocations: 0 / 0.9469 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00238/1.366, allocations: 399.5 kB / 0.9473 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02572/1.392, allocations: 7.348 MB / 0.9544 GB, free: 7.523 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009398/1.393, allocations: 71.98 kB / 0.9545 GB, free: 7.453 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08218/1.475, allocations: 31.87 MB / 0.9856 GB, free: 7.305 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/1.475, allocations: 7.938 kB / 0.9856 GB, free: 7.297 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06308/1.538, allocations: 20.31 MB / 1.005 GB, free: 2.906 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.54, allocations: 0.5781 MB / 1.006 GB, free: 2.359 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001544/1.542, allocations: 68 kB / 1.006 GB, free: 2.293 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005172/1.547, allocations: 379.5 kB / 1.006 GB, free: 1.922 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00369/1.55, allocations: 0.7844 MB / 1.007 GB, free: 1.137 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007728/1.551, allocations: 91.98 kB / 1.007 GB, free: 1.047 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003625/1.555, allocations: 2.149 MB / 1.009 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.004e-06/1.555, allocations: 4 kB / 1.009 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.006837/1.562, allocations: 1.827 MB / 1.011 GB, free: 13.12 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (order3.delta,order3.w,order3.e1q,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (249): * Single equations (assignments): 246 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06438/1.626, allocations: 20.98 MB / 1.032 GB, free: 8.051 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3106/1.937, allocations: 9.379 MB / 1.041 GB, free: 241.4 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/1.937, allocations: 0.7188 kB / 1.041 GB, free: 241.4 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.02057/1.957, allocations: 6.222 MB / 1.047 GB, free: 240.7 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003731/1.961, allocations: 386.3 kB / 1.047 GB, free: 240.7 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1483/2.11, allocations: 59.26 MB / 1.105 GB, free: 206 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/2.112, allocations: 2.455 MB / 1.108 GB, free: 203.5 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001608/2.113, allocations: 375.2 kB / 1.108 GB, free: 203.1 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/2.115, allocations: 1.991 MB / 1.11 GB, free: 201.1 MB / 0.7012 GB Notification: Performance of SimCode: time 1.082e-06/2.115, allocations: 0 / 1.11 GB, free: 201.1 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1757/2.291, allocations: 130.7 MB / 1.237 GB, free: 70.7 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.54/23.83, allocations: 7.766 kB / 1.237 GB, free: 70.7 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII_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_TwoArea_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe 2>&1)