Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_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.001222/0.001222, 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.547/1.547, allocations: 222.9 MB / 239.2 MB, free: 4.617 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.001397/0.001397, allocations: 192.5 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5137/0.5137, allocations: 78.54 MB / 418.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 75.88 kB / 497.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1733, allocations: 68.18 MB / 0.5525 GB, free: 2.117 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.328/0.5013, allocations: 6.56 MB / 0.5589 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004547/0.506, allocations: 1.961 MB / 0.5608 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.5072, allocations: 11.84 kB / 0.5608 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009446/0.5082, allocations: 242.9 kB / 0.561 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002371/0.5106, allocations: 0.7946 MB / 0.5618 GB, free: 35.15 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.001411/0.512, allocations: 0.6272 MB / 0.5624 GB, free: 35.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002265/0.5143, allocations: 1.585 MB / 0.564 GB, free: 34.87 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005875/0.5149, allocations: 322.1 kB / 0.5643 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001179/0.5161, allocations: 0.6511 MB / 0.5649 GB, free: 34.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008373/0.5169, allocations: 0.83 MB / 0.5657 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.5171, allocations: 122.7 kB / 0.5658 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005864/0.5177, allocations: 260.8 kB / 0.5661 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000276/0.518, allocations: 326.7 kB / 0.5664 GB, free: 34.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005501/0.5186, allocations: 0.6696 MB / 0.5671 GB, free: 34.1 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.5202, allocations: 1.643 MB / 0.5687 GB, free: 33.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.5202, allocations: 0 / 0.5687 GB, free: 33.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5202, allocations: 0 / 0.5687 GB, free: 33.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.5202, allocations: 0 / 0.5687 GB, free: 33.71 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.008227/0.5284, allocations: 2.684 MB / 0.5713 GB, free: 32.74 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.5285, allocations: 8.562 kB / 0.5713 GB, free: 32.74 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.5287, allocations: 130.2 kB / 0.5714 GB, free: 32.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004743/0.5334, allocations: 0.7736 MB / 0.5722 GB, free: 32.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.535, allocations: 0.8868 MB / 0.573 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/0.5352, allocations: 258.7 kB / 0.5733 GB, free: 32.01 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.5354, allocations: 85.12 kB / 0.5734 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.5374, allocations: 1.09 MB / 0.5744 GB, free: 31.92 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5375, allocations: 1.844 kB / 0.5744 GB, free: 31.92 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.872e-05/0.5376, allocations: 31.06 kB / 0.5745 GB, free: 31.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.5376, allocations: 16.25 kB / 0.5745 GB, free: 31.92 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.5395, allocations: 0.9935 MB / 0.5754 GB, free: 31.91 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.006527/0.5461, allocations: 3.824 MB / 0.5792 GB, free: 30.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007268/0.5534, allocations: 2.368 MB / 0.5815 GB, free: 29.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.5552, allocations: 0.6811 MB / 0.5822 GB, free: 29.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.5553, allocations: 15.23 kB / 0.5822 GB, free: 29.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/0.5571, allocations: 0.8269 MB / 0.583 GB, free: 28.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 5.46e-06/0.5571, allocations: 0 / 0.583 GB, free: 28.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03147/0.5886, allocations: 7.075 MB / 0.5899 GB, free: 27.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.5888, allocations: 118.4 kB / 0.59 GB, free: 27.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/0.5914, allocations: 1.081 MB / 0.5911 GB, free: 26.79 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000333/0.5917, allocations: 46.97 kB / 0.5911 GB, free: 26.74 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000498/0.5923, allocations: 498 kB / 0.5916 GB, free: 26.35 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006286/0.5929, allocations: 361 kB / 0.5919 GB, free: 26.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009353/0.5938, allocations: 295.3 kB / 0.5922 GB, free: 25.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.245e-05/0.5939, allocations: 301.1 kB / 0.5925 GB, free: 25.63 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001933/0.5959, allocations: 0.7655 MB / 0.5932 GB, free: 25.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00216/0.598, allocations: 0.9312 MB / 0.5941 GB, free: 24.92 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02539/0.6234, allocations: 5.593 MB / 0.5996 GB, free: 23.17 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.6235, allocations: 5.094 kB / 0.5996 GB, free: 23.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01456/0.6381, allocations: 4.339 MB / 0.6038 GB, free: 21.99 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.476e-05/0.6382, allocations: 58.06 kB / 0.6039 GB, free: 21.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.6382, allocations: 2.594 kB / 0.6039 GB, free: 21.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005758/0.644, allocations: 1.512 MB / 0.6054 GB, free: 21.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.6457, allocations: 301.1 kB / 0.6057 GB, free: 21.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/0.665, allocations: 8.266 MB / 0.6137 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/0.6675, allocations: 205.1 kB / 0.6139 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000353/0.6679, allocations: 55.97 kB / 0.614 GB, free: 15.66 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.001031/0.669, allocations: 298.8 kB / 0.6143 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/0.6695, allocations: 130.3 kB / 0.6144 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01198/0.6815, allocations: 3.877 MB / 0.6182 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.6815, allocations: 8 kB / 0.6182 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.962e-05/0.6816, allocations: 8.5 kB / 0.6182 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.6816, allocations: 3.984 kB / 0.6182 GB, free: 11.29 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.0145/0.6961, allocations: 5.45 MB / 0.6235 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.6961, allocations: 8.656 kB / 0.6235 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005739/0.6967, allocations: 103.8 kB / 0.6236 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005128/0.7019, allocations: 1.607 MB / 0.6252 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.7021, allocations: 24 kB / 0.6252 GB, free: 3.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/0.722, allocations: 9.609 MB / 0.6346 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.7221, allocations: 0 / 0.6346 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/0.7375, allocations: 4.741 MB / 0.6392 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006626/0.7382, allocations: 228.9 kB / 0.6395 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004986/0.7387, allocations: 20.94 kB / 0.6395 GB, free: 5.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.7403, allocations: 107.9 kB / 0.6396 GB, free: 4.938 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007763/0.7411, allocations: 196.7 kB / 0.6398 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/0.7413, allocations: 29.39 kB / 0.6398 GB, free: 4.715 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001638/0.7429, allocations: 0.7313 MB / 0.6405 GB, free: 3.977 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7429, allocations: 0 / 0.6405 GB, free: 3.977 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00215/0.7451, allocations: 467.5 kB / 0.641 GB, free: 3.52 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.01503/0.7601, allocations: 5.324 MB / 0.6462 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007282/0.7674, allocations: 2.535 MB / 0.6486 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.7675, allocations: 0.75 kB / 0.6486 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004703/0.7722, allocations: 1.617 MB / 0.6502 GB, free: 9.934 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.7739, allocations: 115.6 kB / 0.6503 GB, free: 9.824 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04225/0.8161, allocations: 16.77 MB / 0.6667 GB, free: 8.633 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009673/0.8172, allocations: 1.124 MB / 0.6678 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000721/0.8179, allocations: 120.6 kB / 0.6679 GB, free: 7.363 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008469/0.8188, allocations: 467.3 kB / 0.6684 GB, free: 6.906 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8188, allocations: 3.938 kB / 0.6684 GB, free: 6.902 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08052/0.8993, allocations: 33.82 MB / 0.7014 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/14, allocations: 17.17 kB / 0.7014 GB, free: 5.488 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)