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.0008114/0.0008116, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.4/1.4, allocations: 223.3 MB / 239.4 MB, free: 5.516 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.001147/0.001147, allocations: 183.6 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4944/0.4944, allocations: 78.55 MB / 420.3 MB, free: 4.238 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.0004309, allocations: 12 kB / 0.4888 GB, free: 5.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1881, allocations: 69.37 MB / 0.5565 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.3416/0.5298, allocations: 6.048 MB / 0.5624 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.5332, allocations: 1.884 MB / 0.5642 GB, free: 35.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003652/0.5336, allocations: 12.25 kB / 0.5643 GB, free: 35.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.534, allocations: 159 kB / 0.5644 GB, free: 35.57 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.5356, allocations: 0.6677 MB / 0.5651 GB, free: 35.27 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.001037/0.5366, allocations: 0.5413 MB / 0.5656 GB, free: 35.18 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.5378, allocations: 1.312 MB / 0.5669 GB, free: 34.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003983/0.5382, allocations: 245.8 kB / 0.5671 GB, free: 34.81 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005626/0.5387, allocations: 0.5157 MB / 0.5676 GB, free: 34.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006847/0.5394, allocations: 0.6925 MB / 0.5683 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.5396, allocations: 56.03 kB / 0.5683 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003521/0.5399, allocations: 184 kB / 0.5685 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.5401, allocations: 233.9 kB / 0.5687 GB, free: 34.37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004465/0.5406, allocations: 0.581 MB / 0.5693 GB, free: 34.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008896/0.5415, allocations: 1.411 MB / 0.5707 GB, free: 33.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.5415, allocations: 0 / 0.5707 GB, free: 33.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5415, allocations: 0 / 0.5707 GB, free: 33.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.5415, allocations: 0 / 0.5707 GB, free: 33.75 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.006856/0.5484, allocations: 2.301 MB / 0.5729 GB, free: 32.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.5484, allocations: 11.75 kB / 0.5729 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001823/0.5486, allocations: 118.1 kB / 0.573 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004567/0.5532, allocations: 0.7682 MB / 0.5738 GB, free: 32.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.5543, allocations: 0.8012 MB / 0.5746 GB, free: 32.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002883/0.5546, allocations: 274.4 kB / 0.5748 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.5548, allocations: 74.94 kB / 0.5749 GB, free: 32.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.5572, allocations: 1.245 MB / 0.5761 GB, free: 32.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.5572, allocations: 0.7031 kB / 0.5761 GB, free: 32.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.799e-05/0.5573, allocations: 28.22 kB / 0.5762 GB, free: 32.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.5573, allocations: 18.25 kB / 0.5762 GB, free: 32.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.5593, allocations: 1.027 MB / 0.5772 GB, free: 32.02 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.005112/0.5644, allocations: 3.623 MB / 0.5807 GB, free: 30.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00767/0.5721, allocations: 2.858 MB / 0.5835 GB, free: 30.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.5737, allocations: 0.7281 MB / 0.5842 GB, free: 29.76 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-05/0.5738, allocations: 19.23 kB / 0.5842 GB, free: 29.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.5738, allocations: 38.56 kB / 0.5843 GB, free: 29.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.605e-06/0.5738, allocations: 1.031 kB / 0.5843 GB, free: 29.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03085/0.6047, allocations: 8.264 MB / 0.5923 GB, free: 28.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.6048, allocations: 94.03 kB / 0.5924 GB, free: 28.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/0.6063, allocations: 0.9607 MB / 0.5934 GB, free: 27.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.705e-05/0.6064, allocations: 46.14 kB / 0.5934 GB, free: 27.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/0.6067, allocations: 460.2 kB / 0.5939 GB, free: 27.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.607, allocations: 310 kB / 0.5942 GB, free: 27.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.6072, allocations: 132.4 kB / 0.5943 GB, free: 27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.082e-05/0.6073, allocations: 303.7 kB / 0.5946 GB, free: 26.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.6091, allocations: 0.7598 MB / 0.5953 GB, free: 26.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001938/0.611, allocations: 0.9844 MB / 0.5963 GB, free: 25.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02368/0.6347, allocations: 5.49 MB / 0.6016 GB, free: 24.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.6348, allocations: 1.094 kB / 0.6016 GB, free: 24.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01567/0.6504, allocations: 4.974 MB / 0.6065 GB, free: 23.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.6505, allocations: 7.75 kB / 0.6065 GB, free: 23.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.6505, allocations: 5 kB / 0.6065 GB, free: 23.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006308/0.6568, allocations: 1.792 MB / 0.6083 GB, free: 22.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.658, allocations: 266.6 kB / 0.6085 GB, free: 22.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01865/0.6767, allocations: 8.618 MB / 0.6169 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.6783, allocations: 202.9 kB / 0.6171 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.6785, allocations: 57.36 kB / 0.6172 GB, free: 15.16 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: 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 (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006962/0.6792, allocations: 263 kB / 0.6174 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/0.6802, allocations: 358.7 kB / 0.6178 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01154/0.6917, allocations: 4.432 MB / 0.6221 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.6918, allocations: 11.94 kB / 0.6221 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.6918, allocations: 8 kB / 0.6221 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.6918, allocations: 7.359 kB / 0.6221 GB, free: 10.06 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.01386/0.7057, allocations: 5.973 MB / 0.628 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.7057, allocations: 0 / 0.628 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004928/0.7062, allocations: 111.8 kB / 0.6281 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005225/0.7114, allocations: 1.872 MB / 0.6299 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.371e-05/0.7115, allocations: 19.94 kB / 0.6299 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02015/0.7317, allocations: 10.81 MB / 0.6405 GB, free: 6.828 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.7317, allocations: 4.938 kB / 0.6405 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/0.7477, allocations: 5.534 MB / 0.6459 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.7482, allocations: 211.5 kB / 0.6461 GB, free: 1.035 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.7484, allocations: 16 kB / 0.6461 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.7495, allocations: 125.1 kB / 0.6462 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004858/0.75, allocations: 177.3 kB / 0.6464 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.7501, allocations: 20 kB / 0.6464 GB, free: 0.707 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001031/0.7511, allocations: 0.6434 MB / 0.647 GB, free: 56 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7511, allocations: 4 kB / 0.647 GB, free: 52 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00169/0.7528, allocations: 439.6 kB / 0.6474 GB, free: 15.62 MB / 462.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 (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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01646/0.7693, allocations: 6.12 MB / 0.6534 GB, free: 9.461 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006787/0.7761, allocations: 2.568 MB / 0.6559 GB, free: 6.883 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.7761, allocations: 0 / 0.6559 GB, free: 6.883 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/0.7803, allocations: 1.531 MB / 0.6574 GB, free: 5.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.7819, allocations: 372.9 kB / 0.6578 GB, free: 4.965 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0438/0.8257, allocations: 17.82 MB / 0.6752 GB, free: 2.699 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009613/0.8267, allocations: 1.077 MB / 0.6762 GB, free: 1.594 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.8273, allocations: 98.8 kB / 0.6763 GB, free: 1.496 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007495/0.828, allocations: 439.3 kB / 0.6768 GB, free: 1.066 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/0.8281, allocations: 0 / 0.6768 GB, free: 1.066 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05887/0.8869, allocations: 28.5 MB / 0.7046 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.8872, allocations: 260.6 kB / 0.7048 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.494/3.381, allocations: 0 / 0.7048 GB, free: 4.758 MB / 0.4981 GB (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/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)