Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.001112/0.001112, allocations: 92.16 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.397/1.397, allocations: 223.2 MB / 239 MB, free: 5.453 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.001207/0.001207, allocations: 176.5 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4898/0.4898, allocations: 78.55 MB / 419.9 MB, free: 4.301 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003729, allocations: 11.98 kB / 499.9 MB, free: 6.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1477, allocations: 69.35 MB / 0.5559 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.268/0.4158, allocations: 5.678 MB / 0.5614 GB, free: 37.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003612/0.4195, allocations: 1.812 MB / 0.5632 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.42, allocations: 12.31 kB / 0.5632 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004029/0.4204, allocations: 144 kB / 0.5634 GB, free: 37.09 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.422, allocations: 0.6308 MB / 0.564 GB, free: 36.91 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.001086/0.4231, allocations: 0.4998 MB / 0.5645 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.4242, allocations: 1.242 MB / 0.5657 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003394/0.4245, allocations: 229.9 kB / 0.5659 GB, free: 36.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004823/0.425, allocations: 0.4968 MB / 0.5664 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006277/0.4257, allocations: 0.6672 MB / 0.567 GB, free: 36.19 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.4258, allocations: 54.25 kB / 0.5671 GB, free: 36.19 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003841/0.4262, allocations: 185.7 kB / 0.5673 GB, free: 36.18 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.4263, allocations: 230.2 kB / 0.5675 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.4265, allocations: 211.8 kB / 0.5677 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008034/0.4273, allocations: 1.091 MB / 0.5687 GB, free: 35.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.4273, allocations: 1.375 kB / 0.5688 GB, free: 35.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4273, allocations: 0.625 kB / 0.5688 GB, free: 35.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.4274, allocations: 0 / 0.5688 GB, free: 35.84 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006345/0.4337, allocations: 2.327 MB / 0.571 GB, free: 34.99 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.4338, allocations: 8.844 kB / 0.571 GB, free: 34.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002108/0.434, allocations: 121 kB / 0.5711 GB, free: 34.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004434/0.4384, allocations: 0.7658 MB / 0.5719 GB, free: 34.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.4395, allocations: 0.7555 MB / 0.5726 GB, free: 34.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.4398, allocations: 267.6 kB / 0.5729 GB, free: 34.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.4399, allocations: 79.5 kB / 0.573 GB, free: 34.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.442, allocations: 1.242 MB / 0.5742 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.442, allocations: 0.6562 kB / 0.5742 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.4421, allocations: 32.31 kB / 0.5742 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.4421, allocations: 17.56 kB / 0.5742 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001816/0.4439, allocations: 1.018 MB / 0.5752 GB, free: 34.16 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.004686/0.4486, allocations: 3.62 MB / 0.5788 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006399/0.455, allocations: 2.85 MB / 0.5815 GB, free: 31.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.4562, allocations: 0.7271 MB / 0.5822 GB, free: 30.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.4564, allocations: 17.08 kB / 0.5823 GB, free: 30.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.4564, allocations: 45.34 kB / 0.5823 GB, free: 30.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.076e-06/0.4564, allocations: 0 / 0.5823 GB, free: 30.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02589/0.4823, allocations: 8.223 MB / 0.5903 GB, free: 29.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.4824, allocations: 106.8 kB / 0.5904 GB, free: 29.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.4844, allocations: 0.9507 MB / 0.5914 GB, free: 28.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001912/0.4846, allocations: 45.7 kB / 0.5914 GB, free: 28.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004386/0.485, allocations: 460.3 kB / 0.5919 GB, free: 28.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004318/0.4855, allocations: 309.9 kB / 0.5921 GB, free: 28.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.4857, allocations: 34.44 kB / 0.5922 GB, free: 28.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4858, allocations: 358.8 kB / 0.5925 GB, free: 27.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.4875, allocations: 0.7515 MB / 0.5933 GB, free: 27.58 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.4893, allocations: 0.9738 MB / 0.5942 GB, free: 27.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.4911, allocations: 0.8357 MB / 0.595 GB, free: 26.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/0.4912, allocations: 3.531 kB / 0.595 GB, free: 26.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01387/0.505, allocations: 4.918 MB / 0.5998 GB, free: 25.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.5051, allocations: 6.938 kB / 0.5998 GB, free: 25.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.46e-05/0.5052, allocations: 6.016 kB / 0.5998 GB, free: 25.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006076/0.5113, allocations: 1.876 MB / 0.6017 GB, free: 25.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.5126, allocations: 254.8 kB / 0.6019 GB, free: 25.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02081/0.5334, allocations: 8.772 MB / 0.6105 GB, free: 21.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.5353, allocations: 201.5 kB / 0.6107 GB, free: 21.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002931/0.5356, allocations: 57.95 kB / 0.6107 GB, free: 21.21 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 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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0008091/0.5365, allocations: 258.2 kB / 0.611 GB, free: 20.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/0.5376, allocations: 363.8 kB / 0.6113 GB, free: 20.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.5487, allocations: 4.416 MB / 0.6156 GB, free: 16.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.5488, allocations: 12 kB / 0.6156 GB, free: 16.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.538e-05/0.5489, allocations: 8 kB / 0.6157 GB, free: 16.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/0.5489, allocations: 4.969 kB / 0.6157 GB, free: 16.51 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.01484/0.5637, allocations: 5.97 MB / 0.6215 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.5638, allocations: 0.8125 kB / 0.6215 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.5644, allocations: 115.8 kB / 0.6216 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005062/0.5695, allocations: 1.864 MB / 0.6234 GB, free: 8.449 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/0.5697, allocations: 23.98 kB / 0.6234 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01721/0.5869, allocations: 10.8 MB / 0.634 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.587, allocations: 0.875 kB / 0.634 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0143/0.6013, allocations: 5.52 MB / 0.6394 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005485/0.6019, allocations: 211.4 kB / 0.6396 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004116/0.6023, allocations: 25.86 kB / 0.6396 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.6036, allocations: 119.9 kB / 0.6397 GB, free: 7.375 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005868/0.6042, allocations: 169.8 kB / 0.6399 GB, free: 7.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.6043, allocations: 32.67 kB / 0.6399 GB, free: 7.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.6054, allocations: 0.6317 MB / 0.6405 GB, free: 6.539 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6054, allocations: 0 / 0.6405 GB, free: 6.539 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002014/0.6074, allocations: 439.6 kB / 0.641 GB, free: 6.109 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01477/0.6222, allocations: 6.11 MB / 0.6469 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.6288, allocations: 2.573 MB / 0.6494 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6288, allocations: 0 / 0.6494 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003879/0.6327, allocations: 1.546 MB / 0.6509 GB, free: 11.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.6347, allocations: 368.3 kB / 0.6513 GB, free: 11.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/0.6601, allocations: 11.19 MB / 0.6622 GB, free: 15.92 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008068/0.661, allocations: 1.073 MB / 0.6633 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005339/0.6615, allocations: 104 kB / 0.6634 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006947/0.6622, allocations: 441.5 kB / 0.6638 GB, free: 14.29 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6623, allocations: 0 / 0.6638 GB, free: 14.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05449/0.7168, allocations: 29.16 MB / 0.6923 GB, free: 1.566 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.717, allocations: 234 kB / 0.6925 GB, free: 1.328 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.574/3.291, allocations: 3.75 kB / 0.6925 GB, free: 1.328 MB / 494.1 MB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: