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.001223/0.001223, allocations: 105.1 kB / 15.98 MB, free: 5.891 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.313/1.313, allocations: 222.9 MB / 239.6 MB, free: 4.738 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.00144/0.00144, allocations: 188.5 kB / 289.9 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5169/0.5169, allocations: 91.9 MB / 432 MB, free: 9.43 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 75.88 kB / 0.502 GB, free: 8.094 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3715, allocations: 71.26 MB / 0.5716 GB, free: 36.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005667/0.3772, allocations: 6.529 MB / 0.578 GB, free: 32.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002928/0.3802, allocations: 1.9 MB / 0.5799 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003662/0.3806, allocations: 11.53 kB / 0.5799 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004141/0.381, allocations: 164.8 kB / 0.58 GB, free: 31.58 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.3824, allocations: 0.6675 MB / 0.5807 GB, free: 31.15 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009704/0.3834, allocations: 0.5464 MB / 0.5812 GB, free: 30.87 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009803/0.3844, allocations: 1.369 MB / 0.5825 GB, free: 30.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003719/0.3847, allocations: 288.3 kB / 0.5828 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005317/0.3853, allocations: 0.5817 MB / 0.5834 GB, free: 29.78 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000557/0.3858, allocations: 0.7553 MB / 0.5841 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.386, allocations: 107.6 kB / 0.5842 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000346/0.3863, allocations: 246.7 kB / 0.5845 GB, free: 29.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.3865, allocations: 281.4 kB / 0.5847 GB, free: 29.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.3869, allocations: 0.6203 MB / 0.5853 GB, free: 28.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007861/0.3877, allocations: 1.13 MB / 0.5864 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3877, allocations: 0 / 0.5864 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3877, allocations: 2.625 kB / 0.5864 GB, free: 28.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3877, allocations: 0 / 0.5864 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.007537/0.3952, allocations: 2.487 MB / 0.5889 GB, free: 27.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.3953, allocations: 9.875 kB / 0.5889 GB, free: 27.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004793/0.4001, allocations: 0.7652 MB / 0.5896 GB, free: 27.03 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.4012, allocations: 0.7887 MB / 0.5904 GB, free: 26.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/0.4014, allocations: 256.7 kB / 0.5906 GB, free: 26.26 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.4016, allocations: 76.75 kB / 0.5907 GB, free: 26.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.4038, allocations: 1.161 MB / 0.5919 GB, free: 25.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.4039, allocations: 16.75 kB / 0.5919 GB, free: 25.76 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.262e-05/0.404, allocations: 25.56 kB / 0.5919 GB, free: 25.74 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.404, allocations: 16.88 kB / 0.5919 GB, free: 25.74 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.4059, allocations: 0.9561 MB / 0.5928 GB, free: 25.42 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.005479/0.4113, allocations: 3.574 MB / 0.5963 GB, free: 23.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007331/0.4187, allocations: 2.308 MB / 0.5986 GB, free: 22.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001295/0.42, allocations: 0.6591 MB / 0.5992 GB, free: 22.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.4201, allocations: 21.08 kB / 0.5993 GB, free: 22.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.4202, allocations: 43.39 kB / 0.5993 GB, free: 22.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.655e-06/0.4202, allocations: 0 / 0.5993 GB, free: 22.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02893/0.4491, allocations: 6.871 MB / 0.606 GB, free: 20.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.4492, allocations: 94.08 kB / 0.6061 GB, free: 20.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.4508, allocations: 0.9676 MB / 0.607 GB, free: 20.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.451, allocations: 41.08 kB / 0.6071 GB, free: 20.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.4513, allocations: 460.3 kB / 0.6075 GB, free: 19.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.4516, allocations: 318.1 kB / 0.6078 GB, free: 19.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004801/0.4521, allocations: 257 kB / 0.6081 GB, free: 19.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.546e-05/0.4522, allocations: 305.1 kB / 0.6084 GB, free: 19.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.4536, allocations: 0.6945 MB / 0.609 GB, free: 19.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.4553, allocations: 0.9161 MB / 0.6099 GB, free: 18.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02299/0.4783, allocations: 5.07 MB / 0.6149 GB, free: 16.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.707e-05/0.4784, allocations: 1.219 kB / 0.6149 GB, free: 16.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01267/0.491, allocations: 4.14 MB / 0.6189 GB, free: 13.81 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.4911, allocations: 8 kB / 0.6189 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.4911, allocations: 4 kB / 0.6189 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004866/0.496, allocations: 1.524 MB / 0.6204 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.4972, allocations: 255.6 kB / 0.6207 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01669/0.5139, allocations: 8.272 MB / 0.6287 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.5157, allocations: 171 kB / 0.6289 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.5159, allocations: 63.97 kB / 0.629 GB, free: 3.363 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.0005806/0.5165, allocations: 264.5 kB / 0.6292 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00094/0.5174, allocations: 339.5 kB / 0.6295 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.5285, allocations: 3.588 MB / 0.6331 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.5286, allocations: 15.94 kB / 0.6331 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.5286, allocations: 4 kB / 0.6331 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/0.5286, allocations: 7.984 kB / 0.6331 GB, free: 15.13 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.01466/0.5433, allocations: 5.133 MB / 0.6381 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/0.5433, allocations: 3.938 kB / 0.6381 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006345/0.544, allocations: 103.9 kB / 0.6382 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005396/0.5494, allocations: 1.594 MB / 0.6398 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.5495, allocations: 16 kB / 0.6398 GB, free: 8.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0196/0.5691, allocations: 10.76 MB / 0.6503 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.5692, allocations: 0 / 0.6503 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/0.5836, allocations: 4.616 MB / 0.6548 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004896/0.5841, allocations: 211.4 kB / 0.655 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.5843, allocations: 24 kB / 0.655 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.5853, allocations: 83.91 kB / 0.6551 GB, free: 8.086 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006309/0.5859, allocations: 172.7 kB / 0.6553 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.593e-05/0.586, allocations: 27.98 kB / 0.6553 GB, free: 7.891 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008595/0.5869, allocations: 0.6473 MB / 0.6559 GB, free: 7.234 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5869, allocations: 0 / 0.6559 GB, free: 7.234 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001353/0.5883, allocations: 439.6 kB / 0.6563 GB, free: 6.805 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.000276/0.5886, allocations: 131.2 kB / 0.6565 GB, free: 6.664 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006168/0.5947, allocations: 2.312 MB / 0.6587 GB, free: 4.344 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.5948, allocations: 64 / 0.6587 GB, free: 4.344 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003946/0.5987, allocations: 1.321 MB / 0.66 GB, free: 3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.6002, allocations: 339 kB / 0.6603 GB, free: 2.652 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.6042, allocations: 2.492 MB / 0.6628 GB, free: 136 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/0.6049, allocations: 1.084 MB / 0.6638 GB, free: 15.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002793/0.6052, allocations: 75.42 kB / 0.6639 GB, free: 14.95 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6052, allocations: 3.938 kB / 0.6639 GB, free: 14.94 MB / 478.1 MB Notification: Performance of Templates: time 0.02709/0.6323, allocations: 21.33 MB / 0.6847 GB, free: 9.594 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)