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.001625/0.001625, allocations: 108 kB / 15.61 MB, free: 152 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.361/1.361, allocations: 222.9 MB / 239.2 MB, free: 4.613 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.0013/0.0013, allocations: 184.5 kB / 289.5 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4924/0.4924, allocations: 91.9 MB / 431.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 76.2 kB / 0.5019 GB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3422, allocations: 71.27 MB / 0.5715 GB, free: 36.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.00564/0.3478, allocations: 6.219 MB / 0.5775 GB, free: 33.1 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.3518, allocations: 1.861 MB / 0.5793 GB, free: 31.87 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.3529, allocations: 8.875 kB / 0.5794 GB, free: 31.87 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007502/0.3537, allocations: 214.1 kB / 0.5796 GB, free: 31.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00237/0.3561, allocations: 0.7626 MB / 0.5803 GB, free: 31.26 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.3574, allocations: 0.5835 MB / 0.5809 GB, free: 30.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001537/0.3589, allocations: 1.37 MB / 0.5822 GB, free: 30.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.3594, allocations: 283.1 kB / 0.5825 GB, free: 30.19 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007397/0.3601, allocations: 0.5832 MB / 0.5831 GB, free: 29.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007069/0.3608, allocations: 0.7573 MB / 0.5838 GB, free: 29.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001717/0.361, allocations: 108 kB / 0.5839 GB, free: 29.53 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005116/0.3615, allocations: 238 kB / 0.5841 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.3617, allocations: 286 kB / 0.5844 GB, free: 29.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004149/0.3622, allocations: 0.6166 MB / 0.585 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.3635, allocations: 1.469 MB / 0.5864 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.3635, allocations: 2.781 kB / 0.5864 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3635, allocations: 0 / 0.5864 GB, free: 28.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.3635, allocations: 0 / 0.5864 GB, free: 28.22 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.008186/0.3717, allocations: 2.487 MB / 0.5889 GB, free: 27.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3718, allocations: 13.22 kB / 0.5889 GB, free: 27.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005131/0.3769, allocations: 0.7663 MB / 0.5896 GB, free: 26.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.3782, allocations: 0.7915 MB / 0.5904 GB, free: 26.36 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/0.3785, allocations: 258.3 kB / 0.5906 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.3786, allocations: 81.8 kB / 0.5907 GB, free: 26.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.3809, allocations: 1.161 MB / 0.5919 GB, free: 25.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3809, allocations: 7.938 kB / 0.5919 GB, free: 25.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.703e-05/0.381, allocations: 27.25 kB / 0.5919 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.3811, allocations: 16.69 kB / 0.5919 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.383, allocations: 0.9521 MB / 0.5928 GB, free: 25.31 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.005931/0.3889, allocations: 3.586 MB / 0.5963 GB, free: 23.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0073/0.3963, allocations: 2.297 MB / 0.5986 GB, free: 22.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.3978, allocations: 0.6575 MB / 0.5992 GB, free: 22.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.398, allocations: 25.56 kB / 0.5992 GB, free: 22.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.398, allocations: 39.5 kB / 0.5993 GB, free: 22.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.366e-06/0.398, allocations: 0 / 0.5993 GB, free: 22.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02942/0.4274, allocations: 6.876 MB / 0.606 GB, free: 20.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.77e-05/0.4276, allocations: 94.75 kB / 0.6061 GB, free: 20.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.4289, allocations: 0.9645 MB / 0.607 GB, free: 20.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/0.4291, allocations: 44.83 kB / 0.6071 GB, free: 20.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/0.4295, allocations: 456.1 kB / 0.6075 GB, free: 19.81 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003261/0.4298, allocations: 318.6 kB / 0.6078 GB, free: 19.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.4302, allocations: 256.1 kB / 0.6081 GB, free: 19.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.4303, allocations: 305.8 kB / 0.6083 GB, free: 19.15 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.4317, allocations: 0.698 MB / 0.609 GB, free: 18.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.4333, allocations: 0.9171 MB / 0.6099 GB, free: 18.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02239/0.4557, allocations: 5.068 MB / 0.6149 GB, free: 16.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.4557, allocations: 2.906 kB / 0.6149 GB, free: 16.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01309/0.4688, allocations: 4.139 MB / 0.6189 GB, free: 13.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.4689, allocations: 10.03 kB / 0.6189 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.4689, allocations: 4 kB / 0.6189 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005273/0.4742, allocations: 1.521 MB / 0.6204 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4754, allocations: 259.6 kB / 0.6207 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/0.4936, allocations: 8.264 MB / 0.6287 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4953, allocations: 175 kB / 0.6289 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.4956, allocations: 55.97 kB / 0.629 GB, free: 3.004 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.0006204/0.4962, allocations: 279.6 kB / 0.6292 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/0.4973, allocations: 332.9 kB / 0.6295 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/0.5091, allocations: 3.588 MB / 0.633 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.5092, allocations: 12 kB / 0.6331 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.5092, allocations: 4 kB / 0.6331 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.5092, allocations: 7.984 kB / 0.6331 GB, free: 14.76 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.01537/0.5246, allocations: 5.14 MB / 0.6381 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.5247, allocations: 3.938 kB / 0.6381 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006232/0.5253, allocations: 103.9 kB / 0.6382 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005839/0.5311, allocations: 1.586 MB / 0.6397 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.5313, allocations: 16 kB / 0.6398 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02062/0.552, allocations: 10.77 MB / 0.6503 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.552, allocations: 3.984 kB / 0.6503 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/0.5673, allocations: 4.605 MB / 0.6548 GB, free: 8.047 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.5679, allocations: 211.5 kB / 0.655 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/0.5682, allocations: 23.94 kB / 0.655 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.5694, allocations: 83.91 kB / 0.6551 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005862/0.57, allocations: 172.8 kB / 0.6552 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.5701, allocations: 27.98 kB / 0.6553 GB, free: 7.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000984/0.5711, allocations: 0.6434 MB / 0.6559 GB, free: 6.867 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5711, allocations: 0 / 0.6559 GB, free: 6.867 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001528/0.5727, allocations: 439.6 kB / 0.6563 GB, free: 6.438 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.0003071/0.573, allocations: 135.1 kB / 0.6564 GB, free: 6.293 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00664/0.5796, allocations: 2.316 MB / 0.6587 GB, free: 3.969 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5797, allocations: 4.062 kB / 0.6587 GB, free: 3.965 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004158/0.5839, allocations: 1.313 MB / 0.66 GB, free: 2.629 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.5857, allocations: 346.2 kB / 0.6603 GB, free: 2.277 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/0.59, allocations: 2.082 MB / 0.6624 GB, free: 180 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006929/0.5907, allocations: 1.077 MB / 0.6634 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004428/0.5912, allocations: 103.3 kB / 0.6635 GB, free: 14.96 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.5914, allocations: 75.41 kB / 0.6636 GB, free: 14.89 MB / 478.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5914, allocations: 3.938 kB / 0.6636 GB, free: 14.89 MB / 478.1 MB Notification: Performance of Templates: time 0.03488/0.6263, allocations: 21.42 MB / 0.6845 GB, free: 9.48 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)