Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006571/0.006571, allocations: 172.7 kB / 15.12 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 239 MB, free: 1.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009582/0.0009582, allocations: 86.31 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4254/0.4254, allocations: 78.59 MB / 419.9 MB, free: 44.21 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 12 kB / 499.8 MB, free: 2.93 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3054, allocations: 69.34 MB / 0.5558 GB, free: 38.75 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004331/0.3097, allocations: 5.416 MB / 0.5611 GB, free: 37.91 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3124, allocations: 1.846 MB / 0.5629 GB, free: 36.61 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.3128, allocations: 10.38 kB / 0.5629 GB, free: 36.61 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003274/0.3131, allocations: 152.9 kB / 0.563 GB, free: 36.54 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.3144, allocations: 0.6813 MB / 0.5637 GB, free: 36.08 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.0009975/0.3154, allocations: 0.4955 MB / 0.5642 GB, free: 35.84 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009857/0.3164, allocations: 0.9001 MB / 0.565 GB, free: 35.35 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.3167, allocations: 230.8 kB / 0.5653 GB, free: 35.25 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.3172, allocations: 0.4966 MB / 0.5657 GB, free: 35.02 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007055/0.318, allocations: 0.6572 MB / 0.5664 GB, free: 34.74 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.3181, allocations: 55.66 kB / 0.5664 GB, free: 34.74 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004452/0.3186, allocations: 172.9 kB / 0.5666 GB, free: 34.7 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.3187, allocations: 227.8 kB / 0.5668 GB, free: 34.57 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.3189, allocations: 212.7 kB / 0.567 GB, free: 34.43 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000779/0.3197, allocations: 1.048 MB / 0.5681 GB, free: 34.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.3197, allocations: 0 / 0.5681 GB, free: 34.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3197, allocations: 0 / 0.5681 GB, free: 34.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3197, allocations: 0 / 0.5681 GB, free: 34.12 MB / 426.7 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.006804/0.3265, allocations: 2.322 MB / 0.5703 GB, free: 33.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.3266, allocations: 12.66 kB / 0.5703 GB, free: 33.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00447/0.3311, allocations: 0.7752 MB / 0.5711 GB, free: 32.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009632/0.332, allocations: 0.7523 MB / 0.5718 GB, free: 32.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.3323, allocations: 265.4 kB / 0.5721 GB, free: 32.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.3324, allocations: 76.12 kB / 0.5721 GB, free: 32.19 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001968/0.3344, allocations: 1.243 MB / 0.5734 GB, free: 31.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3344, allocations: 0 / 0.5734 GB, free: 31.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.873e-05/0.3345, allocations: 25.84 kB / 0.5734 GB, free: 31.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.3345, allocations: 17.16 kB / 0.5734 GB, free: 31.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3362, allocations: 1.022 MB / 0.5744 GB, free: 31.37 MB / 426.7 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.00473/0.341, allocations: 3.813 MB / 0.5781 GB, free: 28.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007165/0.3481, allocations: 2.872 MB / 0.5809 GB, free: 28.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.3483, allocations: 17.77 kB / 0.5809 GB, free: 28.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.3483, allocations: 51.78 kB / 0.581 GB, free: 28.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=92): time 3.106e-06/0.3483, allocations: 0 / 0.581 GB, free: 28.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.02658/0.3749, allocations: 8.215 MB / 0.589 GB, free: 26.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/0.375, allocations: 98.53 kB / 0.5891 GB, free: 26.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.3761, allocations: 0.9582 MB / 0.59 GB, free: 26.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.3763, allocations: 44.7 kB / 0.5901 GB, free: 26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.3765, allocations: 462.9 kB / 0.5905 GB, free: 25.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.3768, allocations: 310.5 kB / 0.5908 GB, free: 25.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.833e-05/0.3769, allocations: 30.09 kB / 0.5909 GB, free: 25.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.416e-05/0.3769, allocations: 357.8 kB / 0.5912 GB, free: 25.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.3784, allocations: 0.7529 MB / 0.5919 GB, free: 24.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.3798, allocations: 0.9696 MB / 0.5929 GB, free: 24.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.3813, allocations: 0.8312 MB / 0.5937 GB, free: 23.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/0.3814, allocations: 1.375 kB / 0.5937 GB, free: 23.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01349/0.3949, allocations: 4.929 MB / 0.5985 GB, free: 22.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.3949, allocations: 7.766 kB / 0.5985 GB, free: 22.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3949, allocations: 9.906 kB / 0.5985 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006038/0.401, allocations: 1.867 MB / 0.6003 GB, free: 22.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4022, allocations: 255.5 kB / 0.6006 GB, free: 22.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02092/0.4231, allocations: 9.186 MB / 0.6096 GB, free: 18.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4248, allocations: 199.9 kB / 0.6098 GB, free: 18.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.425, allocations: 58.28 kB / 0.6098 GB, free: 18.02 MB / 426.7 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.0004612/0.4255, allocations: 257.8 kB / 0.6101 GB, free: 17.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000911/0.4264, allocations: 367.7 kB / 0.6104 GB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/0.4382, allocations: 4.418 MB / 0.6147 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4382, allocations: 15.95 kB / 0.6147 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.4382, allocations: 4 kB / 0.6147 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.4383, allocations: 3.984 kB / 0.6147 GB, free: 13.37 MB / 426.7 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.01371/0.452, allocations: 6.027 MB / 0.6206 GB, free: 7.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.452, allocations: 0 / 0.6206 GB, free: 7.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/0.4525, allocations: 115.9 kB / 0.6207 GB, free: 7.117 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005297/0.4579, allocations: 1.865 MB / 0.6226 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.73e-05/0.4579, allocations: 19.98 kB / 0.6226 GB, free: 5.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01863/0.4766, allocations: 11.2 MB / 0.6335 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4766, allocations: 4 kB / 0.6335 GB, free: 9.684 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/0.4921, allocations: 5.537 MB / 0.6389 GB, free: 4.113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004002/0.4925, allocations: 211.4 kB / 0.6391 GB, free: 3.887 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.4927, allocations: 20 kB / 0.6391 GB, free: 3.867 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.4938, allocations: 123.9 kB / 0.6393 GB, free: 3.746 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004324/0.4942, allocations: 172.8 kB / 0.6394 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/0.4943, allocations: 23.98 kB / 0.6395 GB, free: 3.555 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008114/0.4951, allocations: 0.6356 MB / 0.6401 GB, free: 2.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4951, allocations: 0 / 0.6401 GB, free: 2.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001331/0.4965, allocations: 439.6 kB / 0.6405 GB, free: 2.48 MB / 442.7 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.0002373/0.4967, allocations: 135.2 kB / 0.6406 GB, free: 2.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006296/0.503, allocations: 2.585 MB / 0.6431 GB, free: 15.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.503, allocations: 1.375 kB / 0.6432 GB, free: 15.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004159/0.5072, allocations: 1.532 MB / 0.6446 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.5085, allocations: 355.8 kB / 0.645 GB, free: 13.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.5126, allocations: 2.456 MB / 0.6474 GB, free: 11.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/0.5132, allocations: 1.104 MB / 0.6485 GB, free: 10.23 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004082/0.5136, allocations: 91.34 kB / 0.6485 GB, free: 10.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/0.5138, allocations: 71.42 kB / 0.6486 GB, free: 10.07 MB / 458.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5138, allocations: 0 / 0.6486 GB, free: 10.07 MB / 458.7 MB Notification: Performance of Templates: time 0.03125/0.5451, allocations: 19.24 MB / 0.6674 GB, free: 6.816 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)