Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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 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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009793/0.0009792, allocations: 92.16 kB / 16.02 MB, free: 80 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.408/1.408, allocations: 223.3 MB / 240 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.001475/0.001476, allocations: 184.5 kB / 291.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5215/0.5215, allocations: 91.92 MB / 434.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003806, allocations: 8 kB / 0.5054 GB, free: 7.215 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3945, allocations: 72.46 MB / 0.5762 GB, free: 36.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005042/0.3996, allocations: 6.072 MB / 0.5821 GB, free: 32.66 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004027/0.4037, allocations: 1.898 MB / 0.584 GB, free: 31.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005679/0.4043, allocations: 11.94 kB / 0.584 GB, free: 31.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004608/0.4048, allocations: 162.8 kB / 0.5841 GB, free: 31.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.4065, allocations: 0.6763 MB / 0.5848 GB, free: 30.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.4076, allocations: 0.5412 MB / 0.5853 GB, free: 30.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00123/0.4089, allocations: 1.314 MB / 0.5866 GB, free: 29.89 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003759/0.4093, allocations: 252 kB / 0.5868 GB, free: 29.79 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006069/0.4099, allocations: 0.514 MB / 0.5873 GB, free: 29.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006408/0.4105, allocations: 0.6887 MB / 0.588 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.4107, allocations: 55.84 kB / 0.5881 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004044/0.4111, allocations: 185.2 kB / 0.5882 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.4113, allocations: 239.3 kB / 0.5885 GB, free: 29.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.4117, allocations: 0.5777 MB / 0.589 GB, free: 28.68 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008637/0.4125, allocations: 1.088 MB / 0.5901 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4126, allocations: 4 kB / 0.5901 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4126, allocations: 0 / 0.5901 GB, free: 28.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.4126, allocations: 3.938 kB / 0.5901 GB, free: 28.34 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.007616/0.4202, allocations: 2.303 MB / 0.5924 GB, free: 27.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4203, allocations: 9.5 kB / 0.5924 GB, free: 27.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005142/0.4254, allocations: 0.7671 MB / 0.5931 GB, free: 27.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.4267, allocations: 0.7878 MB / 0.5939 GB, free: 26.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.4271, allocations: 275 kB / 0.5941 GB, free: 26.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.4272, allocations: 74.19 kB / 0.5942 GB, free: 26.38 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002587/0.4298, allocations: 1.243 MB / 0.5954 GB, free: 25.9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.4299, allocations: 9.25 kB / 0.5954 GB, free: 25.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.66e-05/0.43, allocations: 29.59 kB / 0.5955 GB, free: 25.87 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.43, allocations: 17.44 kB / 0.5955 GB, free: 25.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002157/0.4321, allocations: 1.021 MB / 0.5965 GB, free: 25.55 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.00641/0.4386, allocations: 3.652 MB / 0.6 GB, free: 23.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008946/0.4475, allocations: 2.856 MB / 0.6028 GB, free: 22.53 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001841/0.4494, allocations: 0.7235 MB / 0.6035 GB, free: 22.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.4495, allocations: 21.41 kB / 0.6036 GB, free: 22.26 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.4496, allocations: 44.12 kB / 0.6036 GB, free: 22.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.587e-06/0.4496, allocations: 3.938 kB / 0.6036 GB, free: 22.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03331/0.4829, allocations: 8.435 MB / 0.6118 GB, free: 20.72 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.4831, allocations: 98.39 kB / 0.6119 GB, free: 20.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.4855, allocations: 0.9644 MB / 0.6129 GB, free: 20.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000343/0.4859, allocations: 40.92 kB / 0.6129 GB, free: 20.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004637/0.4863, allocations: 460 kB / 0.6134 GB, free: 19.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005837/0.4869, allocations: 314.4 kB / 0.6137 GB, free: 19.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/0.4873, allocations: 132.5 kB / 0.6138 GB, free: 19.49 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.904e-05/0.4874, allocations: 307.2 kB / 0.6141 GB, free: 19.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.4895, allocations: 0.7605 MB / 0.6148 GB, free: 18.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002289/0.4918, allocations: 0.9748 MB / 0.6158 GB, free: 18.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02417/0.5159, allocations: 5.497 MB / 0.6211 GB, free: 15.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-05/0.516, allocations: 0 / 0.6211 GB, free: 15.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01397/0.53, allocations: 4.973 MB / 0.626 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.5301, allocations: 10.34 kB / 0.626 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.5301, allocations: 7.938 kB / 0.626 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005508/0.5356, allocations: 1.79 MB / 0.6278 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5369, allocations: 259.6 kB / 0.628 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/0.5555, allocations: 8.625 MB / 0.6364 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/0.5576, allocations: 210.9 kB / 0.6366 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/0.5579, allocations: 47.98 kB / 0.6367 GB, free: 14.95 MB / 446.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.000955/0.5589, allocations: 262.6 kB / 0.6369 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001268/0.5601, allocations: 352.8 kB / 0.6373 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/0.5741, allocations: 4.432 MB / 0.6416 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/0.5742, allocations: 11.94 kB / 0.6416 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.366e-05/0.5742, allocations: 8 kB / 0.6416 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.929e-05/0.5743, allocations: 3.984 kB / 0.6416 GB, free: 9.855 MB / 446.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.01724/0.5915, allocations: 5.981 MB / 0.6475 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.5916, allocations: 0 / 0.6475 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006356/0.5922, allocations: 111.9 kB / 0.6476 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006201/0.5984, allocations: 1.871 MB / 0.6494 GB, free: 1.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.5986, allocations: 23.92 kB / 0.6494 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02112/0.6197, allocations: 10.8 MB / 0.66 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.6198, allocations: 0 / 0.66 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.6364, allocations: 5.529 MB / 0.6654 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000587/0.637, allocations: 211.5 kB / 0.6656 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003814/0.6374, allocations: 20 kB / 0.6656 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.6388, allocations: 123.9 kB / 0.6657 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006135/0.6394, allocations: 176.6 kB / 0.6659 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6395, allocations: 31.86 kB / 0.6659 GB, free: 0.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.6406, allocations: 0.6434 MB / 0.6665 GB, free: 15.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6406, allocations: 0 / 0.6665 GB, free: 15.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001794/0.6424, allocations: 439.6 kB / 0.6669 GB, free: 15.42 MB / 478.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.0003325/0.6428, allocations: 135.2 kB / 0.6671 GB, free: 15.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006687/0.6495, allocations: 2.574 MB / 0.6696 GB, free: 12.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.6495, allocations: 448 / 0.6696 GB, free: 12.68 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004452/0.6539, allocations: 1.528 MB / 0.6711 GB, free: 11.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.6557, allocations: 369.4 kB / 0.6714 GB, free: 10.76 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.6602, allocations: 2.57 MB / 0.6739 GB, free: 8.168 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007072/0.6609, allocations: 1.084 MB / 0.675 GB, free: 7.047 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.6612, allocations: 75.41 kB / 0.6751 GB, free: 6.973 MB / 478.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6612, allocations: 0 / 0.6751 GB, free: 6.973 MB / 478.1 MB Notification: Performance of Templates: time 0.0305/0.6917, allocations: 21.2 MB / 0.6958 GB, free: 1.742 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)