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.001352/0.001352, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.28/1.28, allocations: 222.9 MB / 239 MB, free: 4.699 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.001414/0.001414, allocations: 192.5 kB / 289.2 MB, free: 2.441 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4547/0.4547, allocations: 78.53 MB / 417.9 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 71.89 kB / 497 MB, free: 6.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1275, allocations: 68.17 MB / 0.552 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2266/0.3541, allocations: 6.511 MB / 0.5583 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003695/0.3578, allocations: 1.883 MB / 0.5602 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.3589, allocations: 11.03 kB / 0.5602 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006383/0.3596, allocations: 166.7 kB / 0.5603 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002026/0.3616, allocations: 0.6617 MB / 0.561 GB, free: 35.25 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.00124/0.3629, allocations: 0.5487 MB / 0.5615 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.3644, allocations: 1.365 MB / 0.5628 GB, free: 35.1 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.3648, allocations: 284.4 kB / 0.5631 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007517/0.3655, allocations: 0.5823 MB / 0.5637 GB, free: 34.92 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000744/0.3663, allocations: 0.759 MB / 0.5644 GB, free: 34.74 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.3664, allocations: 104.2 kB / 0.5645 GB, free: 34.74 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005451/0.367, allocations: 238.7 kB / 0.5648 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.3673, allocations: 296.6 kB / 0.565 GB, free: 34.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004714/0.3677, allocations: 0.6172 MB / 0.5656 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001322/0.3691, allocations: 1.475 MB / 0.5671 GB, free: 34.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3691, allocations: 0 / 0.5671 GB, free: 34.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3691, allocations: 0 / 0.5671 GB, free: 34.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.3691, allocations: 7.031 kB / 0.5671 GB, free: 34.11 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.007515/0.3766, allocations: 2.478 MB / 0.5695 GB, free: 33.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.3767, allocations: 11.72 kB / 0.5695 GB, free: 33.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.3768, allocations: 118.5 kB / 0.5696 GB, free: 33.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004698/0.3815, allocations: 0.7655 MB / 0.5704 GB, free: 33.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.3828, allocations: 0.7931 MB / 0.5712 GB, free: 32.72 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.383, allocations: 259.4 kB / 0.5714 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.3832, allocations: 75.78 kB / 0.5715 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.3853, allocations: 1.183 MB / 0.5726 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3854, allocations: 0 / 0.5726 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.982e-05/0.3854, allocations: 28.19 kB / 0.5727 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.3855, allocations: 18.94 kB / 0.5727 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.3871, allocations: 0.9524 MB / 0.5736 GB, free: 32.38 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.005208/0.3924, allocations: 3.542 MB / 0.5771 GB, free: 31.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006656/0.399, allocations: 2.307 MB / 0.5793 GB, free: 30.31 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.4004, allocations: 0.6607 MB / 0.58 GB, free: 30.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.4005, allocations: 16.27 kB / 0.58 GB, free: 30.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.4005, allocations: 44.66 kB / 0.58 GB, free: 30.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.397e-06/0.4006, allocations: 0 / 0.58 GB, free: 30.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02627/0.4268, allocations: 6.75 MB / 0.5866 GB, free: 28.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.427, allocations: 101.8 kB / 0.5867 GB, free: 28.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.4286, allocations: 0.9672 MB / 0.5877 GB, free: 28.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.4289, allocations: 43.06 kB / 0.5877 GB, free: 28.13 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.4292, allocations: 459.8 kB / 0.5881 GB, free: 27.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.4295, allocations: 313.7 kB / 0.5884 GB, free: 27.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005026/0.43, allocations: 257 kB / 0.5887 GB, free: 27.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.812e-05/0.4301, allocations: 301.7 kB / 0.589 GB, free: 27.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.4315, allocations: 0.6945 MB / 0.5896 GB, free: 26.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.4331, allocations: 0.9218 MB / 0.5905 GB, free: 26.37 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02256/0.4557, allocations: 5.076 MB / 0.5955 GB, free: 24.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.189e-05/0.4558, allocations: 2.719 kB / 0.5955 GB, free: 24.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0141/0.4699, allocations: 4.137 MB / 0.5995 GB, free: 23.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.4699, allocations: 7.469 kB / 0.5995 GB, free: 23.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.47, allocations: 6.281 kB / 0.5996 GB, free: 23.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005698/0.4757, allocations: 1.518 MB / 0.601 GB, free: 23.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.4771, allocations: 259.5 kB / 0.6013 GB, free: 23.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01911/0.4962, allocations: 8.271 MB / 0.6094 GB, free: 19.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.498, allocations: 176 kB / 0.6095 GB, free: 18.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002767/0.4983, allocations: 53.27 kB / 0.6096 GB, free: 18.92 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.0007163/0.499, allocations: 267.4 kB / 0.6098 GB, free: 18.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/0.5002, allocations: 342.7 kB / 0.6102 GB, free: 18.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/0.5111, allocations: 3.591 MB / 0.6137 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.5112, allocations: 12 kB / 0.6137 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/0.5112, allocations: 9.625 kB / 0.6137 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.177e-05/0.5112, allocations: 7.406 kB / 0.6137 GB, free: 15.62 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.01312/0.5244, allocations: 5.127 MB / 0.6187 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.5244, allocations: 0 / 0.6187 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006286/0.5251, allocations: 111.8 kB / 0.6188 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004772/0.5298, allocations: 1.586 MB / 0.6204 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001906/0.5301, allocations: 17.59 kB / 0.6204 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/0.5472, allocations: 10.76 MB / 0.6309 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.5472, allocations: 12.84 kB / 0.6309 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/0.5611, allocations: 4.613 MB / 0.6354 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.5616, allocations: 207.5 kB / 0.6356 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003488/0.562, allocations: 20 kB / 0.6356 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.5632, allocations: 87.91 kB / 0.6357 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006036/0.5638, allocations: 168.8 kB / 0.6359 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.5639, allocations: 29.59 kB / 0.6359 GB, free: 8.387 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009345/0.5649, allocations: 0.6434 MB / 0.6365 GB, free: 7.734 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5649, allocations: 0 / 0.6365 GB, free: 7.734 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001652/0.5665, allocations: 443.6 kB / 0.6369 GB, free: 7.301 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 (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.01433/0.5809, allocations: 5.197 MB / 0.642 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006491/0.5874, allocations: 2.31 MB / 0.6443 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5875, allocations: 0 / 0.6443 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003946/0.5914, allocations: 1.331 MB / 0.6456 GB, free: 14.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.5933, allocations: 337.5 kB / 0.6459 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03864/0.6319, allocations: 16.02 MB / 0.6615 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/0.6327, allocations: 1.073 MB / 0.6626 GB, free: 12.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005467/0.6333, allocations: 106.7 kB / 0.6627 GB, free: 12.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006783/0.634, allocations: 439.3 kB / 0.6631 GB, free: 11.95 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.634, allocations: 0 / 0.6631 GB, free: 11.95 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05604/0.69, allocations: 30.26 MB / 0.6927 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/0.6903, allocations: 253.4 kB / 0.6929 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.303, allocations: 1.125 kB / 0.6929 GB, free: 13.89 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)